[Python-checkins] r57390 - python/branches/release25-maint/setup.py

georg.brandl python-checkins at python.org
Fri Aug 24 13:48:37 CEST 2007


Author: georg.brandl
Date: Fri Aug 24 13:48:37 2007
New Revision: 57390

Modified:
   python/branches/release25-maint/setup.py
Log:
Bug #1765375: fix stripping of unwanted LDFLAGS.
 (backport from rev. 57389)

Modified: python/branches/release25-maint/setup.py
==============================================================================
--- python/branches/release25-maint/setup.py	(original)
+++ python/branches/release25-maint/setup.py	Fri Aug 24 13:48:37 2007
@@ -267,7 +267,8 @@
                 # strip out double-dashes first so that we don't end up with
                 # substituting "--Long" to "-Long" and thus lead to "ong" being
                 # used for a library directory.
-                env_val = re.sub(r'(^|\s+)-(-|(?!%s))' % arg_name[1], '', env_val)
+                env_val = re.sub(r'(^|\s+)-(-|(?!%s))' % arg_name[1],
+                                 ' ', env_val)
                 parser = optparse.OptionParser()
                 # Make sure that allowing args interspersed with options is
                 # allowed


More information about the Python-checkins mailing list