def fixup_build_ext(cmd):
 if (os.name == 'nt'):
  cmd.debug = sys.executable.endswith('_d.exe')
 elif sysconfig.get_config_var('Py_ENABLE_SHARED'):
  runshared = sysconfig.get_config_var('RUNSHARED')
  if (runshared is None):
   cmd.library_dirs = ['.']
  elif (sys.platform == 'darwin'):
   cmd.library_dirs = []
  else:
   (name, equals, value) = runshared.partition('=')
   cmd.library_dirs = [d for d in value.split(os.pathsep) if d]

def fixup_build_ext ( cmd ) : if ( os . name == 'nt' ) : cmd . debug = sys . executable . endswith ( '_d.exe' ) elif sysconfig . get_config_var ( 'Py_ENABLE_SHARED' ) : runshared = sysconfig . get_config_var ( 'RUNSHARED' ) if ( runshared is None ) : cmd . library_dirs = [ '.' ] elif ( sys . platform == 'darwin' ) : cmd . library_dirs = [ ] else : ( name , equals , value ) = runshared . partition ( '=' ) cmd . library_dirs = [ d for d in value . split ( os . pathsep ) if d ]
function needed to make build_ext tests pass .