[Python-Dev] Re: [Python-checkins] python/dist/src setup.py,
bac at ocf.berkeley.edu
Tue Dec 28 08:03:44 CET 2004
Jack Jansen wrote:
> On 18-dec-04, at 21:48, bcannon at users.sourceforge.net wrote:
>> Update of /cvsroot/python/python/dist/src
>> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21493
>> Modified Files:
>> Log Message:
>> Switch from getting LDFLAGS and CPPFLAGS from the environment to the
>> This is to avoid a problem that inconsistently comes up where the
>> variable is unset while the Makefile clearly has the values set and
>> are used
>> during ``make``.
> I'm building MacPython binary distributions with an LDFLAGS configure
> option, as in
> $PYTHONSRC/configure -C --enable-framework LDFLAGS=-Wl,-x
> This has suddenly started failing with a very mysterious error message.
> When the
> make tries to build the extension modules I get
> running build
> running build_ext
> usage: setup.py [options]
> setup.py: error: no such option: -W
> Could this somehow be caused by your fix?
Yep, it's my doing. I bet optparse is raising an error since it doesn't have
options for -W1 or -x registered with the parser. Anyone off the top of their
head know how to cause optparse to just skip over options it doesn't know about?
I am on vacation at the moment so I will deal with this when I get back this
More information about the Python-Dev