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

Function generate_api

numpy/core/setup.py:617–628  ·  view source on GitHub ↗
(ext, build_dir)

Source from the content-addressed store, hash-verified

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')

Callers

nothing calls this directly

Calls 4

joinFunction · 0.85
infoMethod · 0.80
add_data_filesMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected