def get_python_inc(plat_specific=0, prefix=None):
 if (prefix is None):
  prefix = ((plat_specific and EXEC_PREFIX) or PREFIX)
 if (os.name == 'posix'):
  if python_build:
   base = os.path.dirname(os.path.abspath(sys.executable))
   if plat_specific:
    return base
   else:
    incdir = os.path.join(get_config_var('srcdir'), 'Include')
    return os.path.normpath(incdir)
  return os.path.join(prefix, 'include', ('python' + get_python_version()))
 elif (os.name == 'nt'):
  return os.path.join(prefix, 'include')
 elif (os.name == 'mac'):
  if plat_specific:
   return os.path.join(prefix, 'Mac', 'Include')
  else:
   return os.path.join(prefix, 'Include')
 elif (os.name == 'os2'):
  return os.path.join(prefix, 'Include')
 else:
  raise DistutilsPlatformError(("I don't know where Python installs its C header files on platform '%s'" % os.name))

def get_python_inc ( plat_specific = 0 , prefix = None ) : if ( prefix is None ) : prefix = ( ( plat_specific and EXEC_PREFIX ) or PREFIX ) if ( os . name == 'posix' ) : if python_build : base = os . path . dirname ( os . path . abspath ( sys . executable ) ) if plat_specific : return base else : incdir = os . path . join ( get_config_var ( 'srcdir' ) , 'Include' ) return os . path . normpath ( incdir ) return os . path . join ( prefix , 'include' , ( 'python' + get_python_version ( ) ) ) elif ( os . name == 'nt' ) : return os . path . join ( prefix , 'include' ) elif ( os . name == 'mac' ) : if plat_specific : return os . path . join ( prefix , 'Mac' , 'Include' ) else : return os . path . join ( prefix , 'Include' ) elif ( os . name == 'os2' ) : return os . path . join ( prefix , 'Include' ) else : raise DistutilsPlatformError ( ( "I don't know where Python installs its C header files on platform '%s'" % os . name ) )
return the directory containing installed python header files .