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