[Python-bugs-list] [ python-Bugs-459423 ] setup.py ignores OPT make variable

noreply@sourceforge.net noreply@sourceforge.net
Fri, 07 Sep 2001 05:34:48 -0700


Bugs item #459423, was opened at 2001-09-06 23:23
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=459423&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Nobody/Anonymous (nobody)
Summary: setup.py ignores OPT make variable

Initial Comment:
If you build Python using something like

    make OPT=-O6

when it gets around to building the extension modules
it's forgotten (or it ignores) OPT:

    $ make OPT=-O3
    PYTHONPATH= ./python ../setup.py build
    running build
    running build_ext
    building 'struct' extension
    gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -I.
-I/home/skip/src/Python-2.1.1/./Include
-I/usr/local/include -IInclude/ -c
/home/skip/src/Python-2.1.1/Modules/structmodule.c -o
build/temp.linux-i686-2.1/structmodule.o
    gcc -shared
build/temp.linux-i686-2.1/structmodule.o
-L/usr/local/lib -o build/lib.linux-i686-2.1/struct.so
    ...

Shouldn't setup.py recognize and use the value of OPT?


----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-09-07 05:34

Message:
Logged In: YES 
user_id=6380

The setup.py script reads the Makefile but has no access to
the options you pass dynamically to Make.  I'm not sure it's
worth fixing.
You can edit the Makefile instead.

But I'm not setup.py's maintainer, so I'll shut up now. :-)

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=459423&group_id=5470