()
| 19 | |
| 20 | |
| 21 | def get_annotations(): |
| 22 | # Convoluted because we can't import from numpy.distutils |
| 23 | # (numpy is not yet built) |
| 24 | genapi_py = os.path.join(os.path.dirname(__file__), 'genapi.py') |
| 25 | spec = importlib.util.spec_from_file_location('conv_template', genapi_py) |
| 26 | mod = importlib.util.module_from_spec(spec) |
| 27 | spec.loader.exec_module(mod) |
| 28 | return mod.StealRef, mod.MinVersion |
| 29 | |
| 30 | |
| 31 | StealRef, MinVersion = get_annotations() |