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

Function get_processor

numpy/core/code_generators/genapi.py:20–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19
20def get_processor():
21 # Convoluted because we can't import from numpy.distutils
22 # (numpy is not yet built)
23 conv_template_path = os.path.join(
24 os.path.dirname(__file__),
25 '..', '..', 'distutils', 'conv_template.py'
26 )
27 spec = importlib.util.spec_from_file_location(
28 'conv_template', conv_template_path
29 )
30 mod = importlib.util.module_from_spec(spec)
31 spec.loader.exec_module(mod)
32 return mod.process_file
33
34
35process_c_file = get_processor()

Callers 1

genapi.pyFile · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected