[Python-Dev] Re: Debug C++

2020-04-02 Thread Antonio Cavallo
You can also attach gdb to a running (python) process .. but the interpreter needs to have the symbol table (eg. not stripped). I gave a presentation few years back on this exact topic (sorry for the quality, I was very in-experienced).

Re: [Python-Dev] Can Python Be Built Without Distutils

2015-01-25 Thread Antonio Cavallo
I tried a Makefile based build of python (+ some module) in the past for Android (and macos): https://bitbucket.org/cavallo71/android There was no particular problem in dropping autoconfigure+setup.py in the process: the only real problem was the pgen must be compiled on the host machine

Re: [Python-Dev] Sad status of Python 3.x buildbots

2014-09-07 Thread Antonio Cavallo
). It's very similar and I'll post more details when ready. I hope this helps, Thnaks Antonio Cavallo wrote: Setting up a repo with the code and cleaning a bit here and there. Over the weekend I can put something useable. Nick Coghlan wrote: On 4 September 2014 18:50, A. Cavalloa.cava

Re: [Python-Dev] Sad status of Python 3.x buildbots

2014-09-04 Thread A. Cavallo
2014 11:07, Antonio Cavallo a.cava...@cavallinux.eu wrote: I wonder if there is any interest in starting to use the opensuse build servers for continuous build and testing on redhat, fedora suse and (I think) debian: that will solve once for all the maintenance issues on those platforms

Re: [Python-Dev] Sad status of Python 3.x buildbots

2014-09-04 Thread Antonio Cavallo
Setting up a repo with the code and cleaning a bit here and there. Over the weekend I can put something useable. Nick Coghlan wrote: On 4 September 2014 18:50, A. Cavalloa.cava...@cavallinux.eu wrote: Yes there are details indeed. But not show stoppers. A prototype can be seen here:

Re: [Python-Dev] Sad status of Python 3.x buildbots

2014-09-03 Thread Antonio Cavallo
I wonder if there is any interest in starting to use the opensuse build servers for continuous build and testing on redhat, fedora suse and (I think) debian: that will solve once for all the maintenance issues on those platforms (and provide a reliable build). Regards, Antonio

Re: [Python-Dev] Binary CPython distribution for Linux

2014-06-26 Thread Antonio Cavallo
I have a little pet project for building rpm of python 2.7 (it should be trivial to port to 3.x): https://build.opensuse.org/project/show/home:cavallo71:opt-python-modules If there's enough interest I can help to integrate with python.org. I understand there may be technical challenges with

Re: [Python-Dev] Accepting PEP 445

2013-07-07 Thread Antonio Cavallo
Yes that is indeed a great news. Having to debug some binary only extension modules that will make my (rather selfish) life so much easier ;) Thanks On 7 Jul 2013, at 00:04, Victor Stinner victor.stin...@gmail.com wrote: 2013/7/6 Antonio Cavallo a.cava...@cavallinux.eu: Could that remove

Re: [Python-Dev] Accepting PEP 445

2013-07-06 Thread Antonio Cavallo
Could that remove the need for the --with-pydebug flag? On 6 Jul 2013, at 21:54, Antoine Pitrou solip...@pitrou.net wrote: Hello, I'm accepting PEP 445 (A C API to customize memory allocators) by Victor. There is probably some grammar to correct here and there (neither Victor nor I

Re: [Python-Dev] End of the mystery @README.txt Mercurial bug

2013-06-26 Thread a . cavallo
How would that work? How could hg purge the .bak, .orig, .rej, .old, etc. files? hg purge (it's an extension) removes anything that isn't tracked (and not ignored in the .hgignore): kind of distclean. I hope this helps ___ Python-Dev mailing list

Re: [Python-Dev] End of the mystery @README.txt Mercurial bug

2013-06-26 Thread a . cavallo
*~, .orig, .rej, .back should be kept. They are not generated by configure nor make. Ideally they should be left untracked not ignored. While devs can certainly add them to the .hgignore list to make life easier, a repository should be clean of extra files (or shown as untracked). I'd add

Re: [Python-Dev] Compiling Python with Python

2013-06-05 Thread Antonio Cavallo
What's the advantage in writing a new build tool? I'm asking this because I'm doing the same using scons: https://bitbucket.org/cavallo71/fatpython At the moment I'm very interested into this problem: the main advantages I see so far are (in scons) are node dependencies and the fact it is

Re: [Python-Dev] Segmentation fault on 3.4 with --pydebug

2013-05-30 Thread a . cavallo
What's the stack trace? $ gdb --args ./python.exe -Wd -m test.regrtest test_exceptions and once in gdb: gdb bt That should point on where it happened. I hope this help On 2013-05-30 13:08, Łukasz Langa wrote: This happens after Benjamin's changes in 83937. Anybody else seeing this?

Re: [Python-Dev] Structural cleanups to the main CPython repo

2013-05-28 Thread a . cavallo
As part of those changes, I've cleaned up a few aspects of the repo layout: * moved the main executable source file from Modules to a separate Apps directory Do you mean things that go into the shared library (libpythonXX/pythonXX.dll) vs executables?

Re: [Python-Dev] HAVE_FSTAT?

2013-05-18 Thread Antonio Cavallo
I've had a quick look with grep -R HAVE_ * | egrep '[.]c:'. Modules/posixmodule.c has HAVE_UTIME_H and it might be standard libc on all posix platforms. Objects/obmalloc.c has HAVE_MMAP… but I guess that's fine given other platforms might not have such facility. Depending on the granularity

Re: [Python-Dev] The end of 2.7

2013-04-09 Thread a . cavallo
Cavallo wrote: Cool, next time I have to port an extension written in C/C++ I'll be looking only for bytes vs. strings problems. I knew it was easy. Since I didn't see a smiley, I'll assume that wasn't sarcastic. ;) In some ways bilingual extension modules are easier because of #ifdef

Re: [Python-Dev] The end of 2.7

2013-04-08 Thread Antonio Cavallo
It almost always comes down to bytes vs. strings, IME. Cool, next time I have to port an extension written in C/C++ I'll be looking only for bytes vs. strings problems. I knew it was easy. Thanks ___ Python-Dev mailing list

Re: [Python-Dev] [RELEASE] Python 2.7.4 release candidate 1

2013-03-26 Thread a . cavallo
It's already hard to sell 2.7 in most companies. Regards, Antonio Anyway, you should trust Brett Canon: Python 3.3: Trust Me, It's Better Than Python 2.7. https://speakerdeck.com/pyconslides/python-3-dot-3-trust-me-its-better-than-python-2-dot-7-by-dr-brett-cannon Victor

Re: [Python-Dev] Slides from today's parallel/async Python talk

2013-03-14 Thread a . cavallo
By the way on the arm (and any platform that can do cross-compiling) I've created a Makefile based build of the python 2.7.x: https://bitbucket.org/cavallo71/android Please don't be fooled by the Android name, it really can take any crosscompiler (provided it follows the gcc synatx). It

Re: [Python-Dev] question about packaging

2012-12-29 Thread Antonio Cavallo
Correct if I'm wrong but distlib isn't targeting resources managent? distutils is targeted to distribute python modules/packages instead; small differences but on the field they really mean different things. distlib is under http://hg.python.org/distlib too :O ..my first guess would be

Re: [Python-Dev] question about packaging

2012-12-28 Thread Antonio Cavallo
There's the distutil mailing list: http://mail.python.org/mailman/listinfo/distutils-sig Doug Hellmann wrote: A couple of us from the OpenStack project are interested in getting involved in the packaging rewrite/update project. I was following that work for a while, but have lost track of

Re: [Python-Dev] [Distutils] Is is worth disentangling distutils?

2012-12-14 Thread Antonio Cavallo
in one place). Funny enough distutils (the old dead horse) does it all except point 2: that is my reason to clean up the code. I've just seen py3k distutils but it would be worth a back port to py2k. Thanks Nick Coghlan wrote: On Fri, Dec 14, 2012 at 10:10 AM, Antonio Cavallo a.cava

Re: [Python-Dev] [Distutils] Is is worth disentangling distutils?

2012-12-14 Thread Antonio Cavallo
It is not that complex... What's ahead is even more complex. Lennart Regebro wrote: On Fri, Dec 14, 2012 at 9:49 AM, Antonio Cavallo a.cava...@cavallinux.eu wrote: My requirements would quite simple: 2. cross compiling That is *not* a simple requirement. //Lennart

Re: [Python-Dev] [Distutils] Is is worth disentangling distutils?

2012-12-13 Thread Antonio Cavallo
I'll have a look into distutils2, I tough it was (another) dead end. I every case my target is py2k (2.7.x) and I've no case for transitioning to py3k (too much risk). Lennart Regebro wrote: On Mon, Dec 10, 2012 at 8:22 AM, Antonio Cavallo a.cava...@cavallinux.eu wrote: Hi, I wonder

[Python-Dev] Is is worth disentangling distutils?

2012-12-10 Thread Antonio Cavallo
Hi, I wonder if is it worth/if there is any interest in trying to clean up distutils: nothing in terms to add new features, just a *major* cleanup retaining the exact same interface. I'm not planning anything like *adding features* or rewriting rpm/rpmbuild here, simply cleaning up that