]> granicus.if.org Git - python/commitdiff
MacOSX: fix rather dumb buglet that made it impossible to create extensions on
authorRonald Oussoren <ronaldoussoren@mac.com>
Tue, 27 Jun 2006 10:08:25 +0000 (10:08 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Tue, 27 Jun 2006 10:08:25 +0000 (10:08 +0000)
OSX 10.3 when using a binary distribution build on 10.4.

Lib/distutils/sysconfig.py
Lib/distutils/unixccompiler.py

index 2ba3c4db5d9fcbe9b4fb111fa9bc85941e77f3aa..c3b1e4ecfb4a7540250d2b7a901e015a586e2153 100644 (file)
@@ -512,7 +512,7 @@ def get_config_vars(*args):
                 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:
index 324819d4a553119df7ff6eb9b4e9a475eac399fc..6cd14f77288a7b646904d7a4a48f9f9e466da118 100644 (file)
@@ -78,7 +78,7 @@ def _darwin_compiler_fixup(compiler_so, cc_args):
         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