[Python-checkins] r52237 - python/branches/release25-maint/Lib/distutils/unixccompiler.py
ronald.oussoren
python-checkins at python.org
Sun Oct 8 19:52:37 CEST 2006
Author: ronald.oussoren
Date: Sun Oct 8 19:52:37 2006
New Revision: 52237
Modified:
python/branches/release25-maint/Lib/distutils/unixccompiler.py
Log:
Backport of r52236
Modified: python/branches/release25-maint/Lib/distutils/unixccompiler.py
==============================================================================
--- python/branches/release25-maint/Lib/distutils/unixccompiler.py (original)
+++ python/branches/release25-maint/Lib/distutils/unixccompiler.py Sun Oct 8 19:52:37 2006
@@ -82,6 +82,22 @@
except ValueError:
pass
+ # Check if the SDK that is used during compilation actually exists,
+ # the universal build requires the usage of a universal SDK and not all
+ # users have that installed by default.
+ sysroot = None
+ if '-isysroot' in cc_args:
+ idx = cc_args.index('-isysroot')
+ sysroot = cc_args[idx+1]
+ elif '-isysroot' in compiler_so:
+ idx = compiler_so.index('-isysroot')
+ sysroot = compiler_so[idx+1]
+
+ if sysroot and not os.path.isdir(sysroot):
+ log.warn("Compiling with an SDK that doesn't seem to exist: %s",
+ sysroot)
+ log.warn("Please check your Xcode installation")
+
return compiler_so
class UnixCCompiler(CCompiler):
More information about the Python-checkins
mailing list