Message157505
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. |
|
Date |
User |
Action |
Args |
2012-04-04 21:02:16 | Matthew.Scott | set | recipients:
+ Matthew.Scott, tarek, eric.araujo |
2012-04-04 21:02:16 | Matthew.Scott | set | messageid: <1333573336.54.0.79509595022.issue14498@psf.upfronthosting.co.za> |
2012-04-04 21:02:15 | Matthew.Scott | link | issue14498 messages |
2012-04-04 21:02:15 | Matthew.Scott | create | |
|