diff options
author | Robert Kern <robert.kern@gmail.com> | 2007-01-30 19:18:06 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2007-01-30 19:18:06 +0000 |
commit | 8fcedfd0a2a99ac8270d417662ff0d98a266bcc8 (patch) | |
tree | 4557621ae45daa9731508145966bb4a9f88f5b64 /numpy/distutils/fcompiler/gnu.py | |
parent | 4bb28f27cf58e220423e407f0addebb527caf79d (diff) | |
download | numpy-8fcedfd0a2a99ac8270d417662ff0d98a266bcc8.tar.gz |
Revert semi-intelligent handling of MACOSX_DEPLOYMENT_TARGET to work around broken MacPorts Python.
Diffstat (limited to 'numpy/distutils/fcompiler/gnu.py')
-rw-r--r-- | numpy/distutils/fcompiler/gnu.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py index 60101dc00..4e2a618e5 100644 --- a/numpy/distutils/fcompiler/gnu.py +++ b/numpy/distutils/fcompiler/gnu.py @@ -1,6 +1,5 @@ import re import os -import platform import sys import warnings @@ -62,14 +61,16 @@ class GnuFCompiler(FCompiler): def get_flags_linker_so(self): opt = self.linker_so[1:] if sys.platform=='darwin': - osx_version = platform.mac_ver()[0][:4] - osx_major, osx_minor = osx_version.split('.') + # MACOSX_DEPLOYMENT_TARGET must be at least 10.3. This is + # a reasonable default value even when building on 10.4 when using + # the official Python distribution and those derived from it (when + # not broken). target = os.environ.get('MACOSX_DEPLOYMENT_TARGET', None) if target is None or target == '': - target = osx_version + target = '10.3' major, minor = target.split('.') if int(minor) < 3: - minor = osx_minor + minor = '3' warnings.warn('Environment variable ' 'MACOSX_DEPLOYMENT_TARGET reset to %s.%s' % (major, minor)) os.environ['MACOSX_DEPLOYMENT_TARGET'] = '%s.%s' % (major, |