[Python-checkins] r47123 - python/trunk/Lib/distutils/sysconfig.py python/trunk/Lib/distutils/unixccompiler.py
ronald.oussoren
python-checkins at python.org
Tue Jun 27 12:08:25 CEST 2006
Author: ronald.oussoren
Date: Tue Jun 27 12:08:25 2006
New Revision: 47123
Modified:
python/trunk/Lib/distutils/sysconfig.py
python/trunk/Lib/distutils/unixccompiler.py
Log:
MacOSX: fix rather dumb buglet that made it impossible to create extensions on
OSX 10.3 when using a binary distribution build on 10.4.
Modified: python/trunk/Lib/distutils/sysconfig.py
==============================================================================
--- python/trunk/Lib/distutils/sysconfig.py (original)
+++ python/trunk/Lib/distutils/sysconfig.py Tue Jun 27 12:08:25 2006
@@ -512,7 +512,7 @@
for key in ('LDFLAGS', 'BASECFLAGS'):
flags = _config_vars[key]
flags = re.sub('-arch\s+\w+\s', ' ', flags)
- flags = re.sub('-isysroot [^ \t]* ', ' ', flags)
+ flags = re.sub('-isysroot [^ \t]*', ' ', flags)
_config_vars[key] = flags
if args:
Modified: python/trunk/Lib/distutils/unixccompiler.py
==============================================================================
--- python/trunk/Lib/distutils/unixccompiler.py (original)
+++ python/trunk/Lib/distutils/unixccompiler.py Tue Jun 27 12:08:25 2006
@@ -78,7 +78,7 @@
try:
index = compiler_so.index('-isysroot')
# Strip this argument and the next one:
- del compiler_so[index:index+1]
+ del compiler_so[index:index+2]
except ValueError:
pass
More information about the Python-checkins
mailing list