[issue14498] Python 3.x distutils.util.get_platform returns incorrect value using Mac OSX 10.7
Matthew Scott
report at bugs.python.org
Wed Apr 4 23:02:16 CEST 2012
Matthew Scott <matt at 11craft.com> 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.sysconfig;distutils.sysconfig.get_config_vars()['MACOSX_DEPLOYMENT_TARGET']
Out[1]: '10.6'
Using Python 2.7.1:
In [1]: import distutils.sysconfig;distutils.sysconfig.get_config_vars()['MACOSX_DEPLOYMENT_TARGET']
Out[1]: '10.7'
While the deployment target seems like a useful source of information, it does not seem to be accurate enough to "Return a string that identifies the current platform" as the docstring for distutils.util.get_platform() suggests.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14498>
_______________________________________
More information about the Python-bugs-list
mailing list