This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cgaspar
Recipients
Date 2007-03-07.08:45:06
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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)

History
Date User Action Args
2007-08-23 14:52:22adminlinkissue1675533 messages
2007-08-23 14:52:22admincreate