[Python-Dev] Help on issue 5941 (original) (raw)

Tarek Ziadé ziade.tarek at gmail.com
Wed May 6 11:01:14 CEST 2009


Hello,

I need some help on http://bugs.python.org/issue5941

The bug is quite simple: the Distutils unixcompiler used to set the archiver command to "ar -rc".

For quite a while now, this behavior has changed in order to be able to customize the compiler behavior from the environment. That introduced a regression because the mechanism in Distutils that looks for the AR variable in the environment also looks into the Makefile of Python. (in the Makefile then is os.environ)

And as a matter of fact, AR is set to "ar" in there, so the -cr option is not set anymore.

So my question is : should I make a change into the Makefile by adding for example a variable called AR_OPTIONS then build the ar command with AR + AR_OPTIONS

or

that doesn't make sense and I just need to change the behavior so it doesn't look for AR into the Makefile. (just in os.environ)

Thanks Tarek

-- Tarek Ziadé | http://ziade.org



More information about the Python-Dev mailing list