[issue5941] customize_compiler broken

2009-05-07 Thread Tarek Ziadé
Tarek Ziadé added the comment: Fixed in r72445 and r72446 Thanks David ! -- status: open -> closed versions: -Python 3.0 ___ Python tracker ___

[issue5941] customize_compiler broken

2009-05-07 Thread Cournapeau David
Cournapeau David added the comment: Ok, here is a patch which fixes the issue while retaining the AR customization. Here is what it does: - configure defines both AR and ARFLAGS in the configure script, and those are used in the Makefile - ARFLAGS is used instead of the harcoded rc (rc is the

[issue5941] customize_compiler broken

2009-05-06 Thread Floris Bruynooghe
Changes by Floris Bruynooghe : -- nosy: +flub ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue5941] customize_compiler broken

2009-05-06 Thread Tarek Ziadé
Tarek Ziadé added the comment: Ok I am able to reproduce it. We can't change AR in the makefile, so I think the best way is to add like you said the -cr option in Python Makefile under a new variable, then use it in customize_compiler I'll ask on python-dev because I am new to the Makefile. A

[issue5941] customize_compiler broken

2009-05-06 Thread Cournapeau David
Cournapeau David added the comment: You can see the traceback in this recent email: http://mail.python.org/pipermail/python-list/2009-May/712106.html -- ___ Python tracker ___ _

[issue5941] customize_compiler broken

2009-05-06 Thread Tarek Ziadé
Tarek Ziadé added the comment: what is your traceback ? I want to make sure I have the same in the test I built. Also, just before the traceback, can you tell me the exact command that is spawned in ccompiler.py line 1036. -- ___ Python tracker

[issue5941] customize_compiler broken

2009-05-06 Thread Cournapeau David
Cournapeau David added the comment: The bug is also present in python 2.7a -- versions: +Python 2.7, Python 3.0 ___ Python tracker ___ ___

[issue5941] customize_compiler broken

2009-05-06 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- priority: -> critical ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue5941] customize_compiler broken

2009-05-05 Thread Cournapeau David
Cournapeau David added the comment: Both should be set as serious, in the sense that build_clib is totally broken ATM, with no simple workaround. OTOH, maybe numpy is the only user of build_clib, in which case it is not so serious (I use my own fixed, copied versions of the original code for the

[issue5941] customize_compiler broken

2009-05-05 Thread Cournapeau David
Cournapeau David added the comment: Hi Tarek, Yes, I have a simple example, which show both 5940 and 5941 bugs: """ from distutils.core import setup # How to install libfoo.a/foo.lib in say pkg_dir/lib ? setup(name='yo', libraries=[('foo', {'sources': ['foo.c']})]) """ foo.c can be an empty

[issue5941] customize_compiler broken

2009-05-05 Thread Tarek Ziadé
Tarek Ziadé added the comment: Hi David, do you have an example that breaks, I can reuse to write the test ? -- ___ Python tracker ___ ___

[issue5941] customize_compiler broken

2009-05-05 Thread Cournapeau David
New submission from Cournapeau David : The customize_compiler function is broken in python 3.1. The archiver for a 'standard' unix compiler is set as ['ar', '-cr'], but in python 3.*, customize_compiler overwrites self.archiver from get_sysconfig_var('AR'), and AR is defined as ar, which breaks c