New submission from Matthew Scott :
Using Python 3.2.2 and Python 3.3.0a2 (installed via 64-bit installers in
official DMGs on python.org), 'distutils.util.get_platform()' returns an
incorrect OS version when running on Mac OSX 10.7.
Using Python 2.6.7, and Python 2.7.1 (the version
Matthew Scott added the comment:
In the cases of both Python 3.x and 2.x, get_platform() is deriving information
about the version of OSX from the 'MACOSX_DEPLOYMENT_TARGET' dictionary
returned by distutils.sysconfig.get_config_vars().
Using Python 3.2.2:
In [1]: import
distutils
Matthew Scott added the comment:
Interestingly, the 2.x series allowed an os.environ override for the
MACOSX_DEPLOYMENT_TARGET value, while the 3.x series did away with that, as a
result of http://bugs.python.org/issue9516
> for version in 2.6 2.7 3.2 3.3; do MACOSX_DEPLOYMENT_TARGET=10
Changes by Matthew Scott :
--
nosy: +Matthew.Scott
___
Python tracker
<http://bugs.python.org/issue14499>
___
___
Python-bugs-list mailing list
Unsubscribe: