[Distutils] FW: disutil....

Michiel Jan Laurens de Hoon mdehoon@ims.u-tokyo.ac.jp
Thu Sep 26 00:33:42 2002


Can't the extra_compile_args and extra_link_args parameters be used to 
specify additional command line options? For instance, I use

extension = Extension( .....,  extra_link_args=['-s'])

in the setup.py script to pass -s during the link phase.


Paul F Dubois wrote:

>Can anybody answer Charles' question for me? I've never dealt with this.
>
>-----Original Message-----
>From: Charles Doutriaux [mailto:doutriaux1@llnl.gov] 
>Sent: Wednesday, September 25, 2002 4:51 PM
>To: Paul F. Dubois; Dean Williams
>Subject: disutil....
>
>
>Hi Paul/Dean,
>
>Do you know how to force disutil to pick up flags ?
>
>I'm trying to build a C extension (DODS), and I need to tell it to use 
>-z muldefs when building, but even when setting CFLAGS LDFLAGS and CC 
>disutil ignore them flat.
>
>WORSE it doesn't even remember that cc was cc -mt when building python 
>(which by the way doesn't build out of the box on solaris with gcc..., 
>which is why i'm stuck with cc...), well at least it remembers that it 
>was cc :) !
>
>Is there any way to put it in the setup.py file ?
>
>Thanks for any help,
>
>C.
>