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

Function get_processor

numpy/_build_utils/process_src_template.py:8–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7
8def get_processor():
9 # Convoluted because we can't import from numpy.distutils
10 # (numpy is not yet built)
11 conv_template_path = os.path.join(
12 os.path.dirname(__file__),
13 '..', 'distutils', 'conv_template.py'
14 )
15 spec = importlib.util.spec_from_file_location(
16 'conv_template', conv_template_path
17 )
18 mod = importlib.util.module_from_spec(spec)
19 spec.loader.exec_module(mod)
20 return mod.process_file
21
22
23def process_and_write_file(fromfile, outfile):

Callers 1

process_and_write_fileFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected