| 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'), |