This commit is contained in:
Johan Boule 2011-12-03 21:02:22 +01:00
commit 5af4835da5
1 changed files with 4 additions and 0 deletions

View File

@ -468,6 +468,10 @@ def unversioned_sys_platform():
elif s in ('SunOS', 'Solaris'):
return 'sunos'
else: s = s.lower()
# powerpc == darwin for our purposes
if s == 'powerpc':
return 'darwin'
if s == 'win32' or s.endswith('os2') and s != 'sunos2': return s
return re.split('\d+$', s)[0]