MCPcopy Create free account
hub / github.com/numpy/numpy / generate_api_func

Function generate_api_func

numpy/core/setup.py:616–629  ·  view source on GitHub ↗
(module_name)

Source from the content-addressed store, hash-verified

614 return target
615
616 def generate_api_func(module_name):
617 def generate_api(ext, build_dir):
618 script = join(codegen_dir, module_name + '.py')
619 sys.path.insert(0, codegen_dir)
620 try:
621 m = __import__(module_name)
622 log.info('executing %s', script)
623 h_file, c_file = m.generate_api(os.path.join(build_dir, header_dir))
624 finally:
625 del sys.path[0]
626 config.add_data_files((header_dir, h_file),
627 )
628 return (h_file,)
629 return generate_api
630
631 generate_numpy_api = generate_api_func('generate_numpy_api')
632 generate_ufunc_api = generate_api_func('generate_ufunc_api')

Callers 1

configurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected