summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/sysconfig.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2011-06-29 03:01:52 (GMT)
committerNed Deily <nad@acm.org>2011-06-29 03:01:52 (GMT)
commit8c86d308a155e86f2ef630777cd5ac08c926f139 (patch)
tree36b0d34bb6217437b195e9b9ffe88c4e7383fe30 /Lib/distutils/sysconfig.py
parent274271d1ae71dbd1177b54a5def45fed3ecb501f (diff)
parent657b2de893a206dbcc3d34baa65f6cfda11726e5 (diff)
downloadcpython-8c86d308a155e86f2ef630777cd5ac08c926f139.zip
cpython-8c86d308a155e86f2ef630777cd5ac08c926f139.tar.gz
cpython-8c86d308a155e86f2ef630777cd5ac08c926f139.tar.bz2
Issue #9516: Merge Distutils changes from 3.2
Diffstat (limited to 'Lib/distutils/sysconfig.py')
-rw-r--r--Lib/distutils/sysconfig.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index 06bbc01..9d7d190 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -419,21 +419,6 @@ def _init_posix():
raise DistutilsPlatformError(my_msg)
- # On MacOSX we need to check the setting of the environment variable
- # MACOSX_DEPLOYMENT_TARGET: configure bases some choices on it so
- # it needs to be compatible.
- # If it isn't set we set it to the configure-time value
- if sys.platform == 'darwin' and 'MACOSX_DEPLOYMENT_TARGET' in g:
- cfg_target = g['MACOSX_DEPLOYMENT_TARGET']
- cur_target = os.getenv('MACOSX_DEPLOYMENT_TARGET', '')
- if cur_target == '':
- cur_target = cfg_target
- os.environ['MACOSX_DEPLOYMENT_TARGET'] = cfg_target
- elif [int(x) for x in cfg_target.split('.')] > [int(x) for x in cur_target.split('.')]:
- my_msg = ('$MACOSX_DEPLOYMENT_TARGET mismatch: now "%s" but "%s" during configure'
- % (cur_target, cfg_target))
- raise DistutilsPlatformError(my_msg)
-
# On AIX, there are wrong paths to the linker scripts in the Makefile
# -- these paths are relative to the Python source, but when installed
# the scripts are in another directory.