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

Function generate_umath_doc_header

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

Source from the content-addressed store, hash-verified

939 return []
940
941 def generate_umath_doc_header(ext, build_dir):
942 from numpy.distutils.misc_util import exec_mod_from_location
943
944 target = join(build_dir, header_dir, '_umath_doc_generated.h')
945 dir = os.path.dirname(target)
946 if not os.path.exists(dir):
947 os.makedirs(dir)
948
949 generate_umath_doc_py = join(codegen_dir, 'generate_umath_doc.py')
950 if newer(generate_umath_doc_py, target):
951 n = dot_join(config.name, 'generate_umath_doc')
952 generate_umath_doc = exec_mod_from_location(
953 '_'.join(n.split('.')), generate_umath_doc_py)
954 generate_umath_doc.write_code(target)
955
956 umath_src = [
957 join('src', 'umath', 'umathmodule.c'),

Callers

nothing calls this directly

Calls 6

dot_joinFunction · 0.90
exec_mod_from_locationFunction · 0.90
joinFunction · 0.85
existsMethod · 0.45
joinMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected