Brett C. wrote:
Jack Jansen wrote:
On 18-dec-04, at 21:48, email@example.com wrote:
Update of /cvsroot/python/python/dist/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21493
Modified Files: setup.py Log Message: Switch from getting LDFLAGS and CPPFLAGS from the environment to the Makefile. This is to avoid a problem that inconsistently comes up where the environment variable is unset while the Makefile clearly has the values set and are used during ``make``.
Brett, 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?
OK, rev. 1.210 has my fix. Now I strip out double dashes (for long options) and any dashes preceding any options that setup.py doesn't care about before passing the string to optparse. That way they just look like interspersed arguments to optparse and it just ignores them.
Tested it with your LDFLAGS value and it worked fine for me.
I am on vacation at the moment so I will deal with this when I get back this weekend.
So I lied and got to it sooner. =)
Happy New Year to everyone.