diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2006-04-17 14:43:30 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2006-04-17 14:43:30 (GMT) |
commit | 59075eb264becaa8279f81a90846e8c248033c32 (patch) | |
tree | ad1c8743845456d85b539c93c4ca0784c75d17b6 /Lib/distutils | |
parent | 0d660c02364216e704c1370d5f06aa7be682a638 (diff) | |
download | cpython-59075eb264becaa8279f81a90846e8c248033c32.zip cpython-59075eb264becaa8279f81a90846e8c248033c32.tar.gz cpython-59075eb264becaa8279f81a90846e8c248033c32.tar.bz2 |
disutils checks if MACOSX_DEPLOYMENT_TARGET is consistent with the value at
configure time. The current check is too strict and doesn't allow building
extensions that can only run on newer versions of the OS than the version
python was build for, that is python build for 10.3 or later and an extension
for 10.4. This patch relaxes this check.
This turned out to be a reimplementation of patch 1193190.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/sysconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py index 8d66cc2..72aa511 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py @@ -372,7 +372,7 @@ def _init_posix(): if cur_target == '': cur_target = cfg_target os.putenv('MACOSX_DEPLOYMENT_TARGET', cfg_target) - if cfg_target != cur_target: + elif map(int, cfg_target.split('.')) > map(int, cur_target.split('.')): my_msg = ('$MACOSX_DEPLOYMENT_TARGET mismatch: now "%s" but "%s" during configure' % (cur_target, cfg_target)) raise DistutilsPlatformError(my_msg) |