def macosx_sdk_root():
 cflags = sysconfig.get_config_var('CFLAGS')
 m = re.search('-isysroot\\s+(\\S+)', cflags)
 if (m is None):
  sysroot = '/'
 else:
  sysroot = m.group(1)
 return sysroot

def macosx_sdk_root ( ) : cflags = sysconfig . get_config_var ( 'CFLAGS' ) m = re . search ( '-isysroot\\s+(\\S+)' , cflags ) if ( m is None ) : sysroot = '/' else : sysroot = m . group ( 1 ) return sysroot
return the directory of the current osx sdk .