Commit 41e25d5f authored by PJ Eby's avatar PJ Eby

Honor get_platform() for Mac OS X if it starts with 'macosx-'

--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042231
parent cc46483c
......@@ -142,7 +142,9 @@ def get_platform():
XXX Currently this is the same as ``distutils.util.get_platform()``, but it
needs some hacks for Linux and Mac OS X.
"""
if sys.platform == "darwin":
from distutils.util import get_platform
plat = get_platform()
if sys.platform == "darwin" and not plat.startswith('macosx-'):
try:
version = _macosx_vers()
machine = os.uname()[4].replace(" ", "_")
......@@ -152,9 +154,7 @@ def get_platform():
# if someone is running a non-Mac darwin system, this will fall
# through to the default implementation
pass
from distutils.util import get_platform
return get_platform()
return plat
macosVersionString = re.compile(r"macosx-(\d+)\.(\d+)-(.*)")
darwinVersionString = re.compile(r"darwin-(\d+)\.(\d+)\.(\d+)-(.*)")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment