def get_build_platform():
 try:
  from distutils.util import get_platform
 except ImportError:
  from sysconfig import get_platform
 plat = get_platform()
 if ((sys.platform == 'darwin') and (not plat.startswith('macosx-'))):
  try:
   version = _macosx_vers()
   machine = os.uname()[4].replace(' ', '_')
   return ('macosx-%d.%d-%s' % (int(version[0]), int(version[1]), _macosx_arch(machine)))
  except ValueError:
   pass
 return plat

def get_build_platform ( ) : try : from distutils . util import get_platform except ImportError : from sysconfig import get_platform plat = get_platform ( ) if ( ( sys . platform == 'darwin' ) and ( not plat . startswith ( 'macosx-' ) ) ) : try : version = _macosx_vers ( ) machine = os . uname ( ) [ 4 ] . replace ( ' ' , '_' ) return ( 'macosx-%d.%d-%s' % ( int ( version [ 0 ] ) , int ( version [ 1 ] ) , _macosx_arch ( machine ) ) ) except ValueError : pass return plat
return this platforms string for platform-specific distributions xxx currently this is the same as distutils .