This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Matthew.Scott
Recipients Matthew.Scott, eric.araujo, tarek
Date 2012-04-04.21:02:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1333573336.54.0.79509595022.issue14498@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-04-04 21:02:16Matthew.Scottsetrecipients: + Matthew.Scott, tarek, eric.araujo
2012-04-04 21:02:16Matthew.Scottsetmessageid: <1333573336.54.0.79509595022.issue14498@psf.upfronthosting.co.za>
2012-04-04 21:02:15Matthew.Scottlinkissue14498 messages
2012-04-04 21:02:15Matthew.Scottcreate