def set_configuration(env, use_distutils):
 dist_cfg = {'PYEXTCC': ("sysconfig.get_config_var('CC')", False), 'PYEXTCFLAGS': ("sysconfig.get_config_var('CFLAGS')", True), 'PYEXTCCSHARED': ("sysconfig.get_config_var('CCSHARED')", False), 'PYEXTLINKFLAGS': ("sysconfig.get_config_var('LDFLAGS')", True), 'PYEXTLINK': ("sysconfig.get_config_var('LDSHARED')", False), 'PYEXTINCPATH': ('sysconfig.get_python_inc()', False), 'PYEXTSUFFIX': ("sysconfig.get_config_var('SO')", False)}
 from distutils import sysconfig
 ifnotset(env, 'PYEXTINCPATH', sysconfig.get_python_inc())
 if use_distutils:
  for (k, (v, should_split)) in dist_cfg.items():
   val = eval(v)
   if should_split:
    val = val.split()
   ifnotset(env, k, val)
 else:
  _set_configuration_nodistutils(env)

def set_configuration ( env , use_distutils ) : dist_cfg = { 'PYEXTCC' : ( "sysconfig.get_config_var('CC')" , False ) , 'PYEXTCFLAGS' : ( "sysconfig.get_config_var('CFLAGS')" , True ) , 'PYEXTCCSHARED' : ( "sysconfig.get_config_var('CCSHARED')" , False ) , 'PYEXTLINKFLAGS' : ( "sysconfig.get_config_var('LDFLAGS')" , True ) , 'PYEXTLINK' : ( "sysconfig.get_config_var('LDSHARED')" , False ) , 'PYEXTINCPATH' : ( 'sysconfig.get_python_inc()' , False ) , 'PYEXTSUFFIX' : ( "sysconfig.get_config_var('SO')" , False ) } from distutils import sysconfig ifnotset ( env , 'PYEXTINCPATH' , sysconfig . get_python_inc ( ) ) if use_distutils : for ( k , ( v , should_split ) ) in dist_cfg . items ( ) : val = eval ( v ) if should_split : val = val . split ( ) ifnotset ( env , k , val ) else : _set_configuration_nodistutils ( env )
set the current device configuration .