On Thu, May 7, 2009 at 1:37 PM, David Cournapeau
On Thu, May 7, 2009 at 7:07 PM, Tarek Ziadé
wrote: On Thu, May 7, 2009 at 11:50 AM, David Cournapeau
wrote: Then, in the customize_compiler function, set archiver to $AR + $ARFLAGS. IOW, just copying the logic used for e.g. ldshared,
I can prepare a patch if you want,
I am ok on Distutils side, but I wouldn't mind some help on the makefile/configure side
Ok, I ended up making a patch for everything. I tested it on Linux, where it fixed the issue while keeping the customization (both AR and ARFLAGS can be customized through environment variables).
numpy now builds under python 2.7,
cheers,
David
ok thanks David, I'll complete your patch with the test I have written for this issue and commit it so it's included in 2.7/3.1. Notice that from the beginning, the unixcompiler class options are never used if the option has been customized in distutils.sysconfig and present in the Makefile, so we need to clean this behavior as well at some point, and document the customization features. By the way, do you happen to have a buildbot or something that builds numpy ? If not it'll be very interesting: I wouldn't mind having one numpy track running on the Python trunk and receiving mails if something is broken. Regards Tarek -- Tarek Ziadé | http://ziade.org
On Thu, May 7, 2009 at 8:49 PM, Tarek Ziadé
Notice that from the beginning, the unixcompiler class options are never used if the option has been customized in distutils.sysconfig and present in the Makefile, so we need to clean this behavior as well at some point, and document the customization features.
Indeed, I have never bothered much with this part, though. Flags customization with distutils is too awkward to be useful in general for something like numpy IMHO, I just use scons instead when I need fine grained control.
By the way, do you happen to have a buildbot or something that builds numpy ?
We have a buildbot: http://buildbot.scipy.org/ But I don't know if that's easy to set up such as both python and numpy are built from sources.
If not it'll be very interesting: I wouldn't mind having one numpy track running on the Python trunk and receiving mails if something is broken.
Well, I would not mind either :) David
On Thu, May 7, 2009 at 2:11 PM, David Cournapeau
But I don't know if that's easy to set up such as both python and numpy are built from sources.
I don't know about the numpy part, but the PyBots project code could be a source of inspiration for the Python part http://code.google.com/p/pybots/source/browse/trunk/master/community.cfg
participants (2)
-
David Cournapeau
-
Tarek Ziadé