def get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
 if (prefix is None):
  if standard_lib:
   prefix = ((plat_specific and BASE_EXEC_PREFIX) or BASE_PREFIX)
  else:
   prefix = ((plat_specific and EXEC_PREFIX) or PREFIX)
 if (os.name == 'posix'):
  libpython = os.path.join(prefix, 'lib', ('python' + get_python_version()))
  if standard_lib:
   return libpython
  else:
   return os.path.join(libpython, 'site-packages')
 elif (os.name == 'nt'):
  if standard_lib:
   return os.path.join(prefix, 'Lib')
  else:
   return os.path.join(prefix, 'Lib', 'site-packages')
 else:
  raise DistutilsPlatformError(("I don't know where Python installs its library on platform '%s'" % os.name))

def get_python_lib ( plat_specific = 0 , standard_lib = 0 , prefix = None ) : if ( prefix is None ) : if standard_lib : prefix = ( ( plat_specific and BASE_EXEC_PREFIX ) or BASE_PREFIX ) else : prefix = ( ( plat_specific and EXEC_PREFIX ) or PREFIX ) if ( os . name == 'posix' ) : libpython = os . path . join ( prefix , 'lib' , ( 'python' + get_python_version ( ) ) ) if standard_lib : return libpython else : return os . path . join ( libpython , 'site-packages' ) elif ( os . name == 'nt' ) : if standard_lib : return os . path . join ( prefix , 'Lib' ) else : return os . path . join ( prefix , 'Lib' , 'site-packages' ) else : raise DistutilsPlatformError ( ( "I don't know where Python installs its library on platform '%s'" % os . name ) )
return the directory containing the python library .