def load_compiler_config():
 import zmq
 zmq_dir = dirname(zmq.__file__)
 zmq_parent = dirname(zmq_dir)
 fname = join(zmq_dir, 'utils', 'compiler.json')
 if os.path.exists(fname):
  with open(fname) as f:
   cfg = json.load(f)
 else:
  cfg = {}
 cfg.setdefault('include_dirs', [])
 cfg.setdefault('library_dirs', [])
 cfg.setdefault('runtime_library_dirs', [])
 cfg.setdefault('libraries', ['zmq'])
 cfg['libraries'] = [str(lib) for lib in cfg['libraries']]
 for key in ('include_dirs', 'library_dirs', 'runtime_library_dirs'):
  abs_paths = []
  for p in cfg[key]:
   if p.startswith('zmq'):
    p = join(zmq_parent, p)
   abs_paths.append(str(p))
  cfg[key] = abs_paths
 return cfg

def load_compiler_config ( ) : import zmq zmq_dir = dirname ( zmq . __file__ ) zmq_parent = dirname ( zmq_dir ) fname = join ( zmq_dir , 'utils' , 'compiler.json' ) if os . path . exists ( fname ) : with open ( fname ) as f : cfg = json . load ( f ) else : cfg = { } cfg . setdefault ( 'include_dirs' , [ ] ) cfg . setdefault ( 'library_dirs' , [ ] ) cfg . setdefault ( 'runtime_library_dirs' , [ ] ) cfg . setdefault ( 'libraries' , [ 'zmq' ] ) cfg [ 'libraries' ] = [ str ( lib ) for lib in cfg [ 'libraries' ] ] for key in ( 'include_dirs' , 'library_dirs' , 'runtime_library_dirs' ) : abs_paths = [ ] for p in cfg [ key ] : if p . startswith ( 'zmq' ) : p = join ( zmq_parent , p ) abs_paths . append ( str ( p ) ) cfg [ key ] = abs_paths return cfg
load pyzmq compiler arguments .