Re: [Python-checkins] python/dist/src setup.py, 1.208, 1.209

On 18-dec-04, at 21:48, bcannon@users.sourceforge.net wrote:
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? -- Jack Jansen, <Jack.Jansen@cwi.nl>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman

Jack Jansen wrote:
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 weekend. -Brett

Brett C. wrote:
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. -Brett

Jack Jansen wrote:
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 weekend. -Brett

Brett C. wrote:
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. -Brett
participants (3)
-
Brett C.
-
Brett C.
-
Jack Jansen