[ python-Bugs-1675533 ] setup.py LDFLAGS regexp is wrong

SourceForge.net noreply at sourceforge.net
Wed Mar 7 09:45:07 CET 2007


Bugs item #1675533, was opened at 2007-03-07 03:45
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1675533&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Carson Gaspar (cgaspar)
Assigned to: Nobody/Anonymous (nobody)
Summary: setup.py LDFLAGS regexp is wrong

Initial Comment:
Python 2.5

setup.py mangles LDFLAGS and CPPFLAGS via:

env_val = re.sub(r'(^|\s+)-(-|(?!%s))' % arg_name[1], '', env_val)

This causes '-L/path/to/foo -R/path/to/bar' to become '-L/path/to/fooR/path/to/bar', which obviously doesn't work. The fix is simple - eat non-whitespace after the unrecognized option:

env_val = re.sub(r'(^|\s+)-(-|(?!%s))\S+' % arg_name[1], '', env_val)



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

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


More information about the Python-bugs-list mailing list