diff options
author | Tyler Reddy <tyler.je.reddy@gmail.com> | 2018-08-31 11:10:04 -0700 |
---|---|---|
committer | Tyler Reddy <tyler.je.reddy@gmail.com> | 2018-08-31 11:10:04 -0700 |
commit | 41a494b4ef9324e1af35f6e8c035fc4a92e4cf97 (patch) | |
tree | 1f96e017cbd0b972a6064509af08463c103dda53 /numpy/core/setup.py | |
parent | f17f229a4a5def56282df4a7e51461c9374385d8 (diff) | |
download | numpy-41a494b4ef9324e1af35f6e8c035fc4a92e4cf97.tar.gz |
TST: reorder duplicate mem_overlap.c compile
* _multiarray_tests unfortunately recompile a
shared dependency of the extension they are
testing, causing gcov to flag the timestamp
differential; the shared dependency remains
but the extension is now built AFTER the
tests are compiled so that the timestamps
match expectations for gcov
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index b306aa4e8..1588a2634 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -710,6 +710,17 @@ def configuration(parent_package='',top_path=None): include_dirs=[]) ####################################################################### + # multiarray_tests module # + ####################################################################### + + config.add_extension('_multiarray_tests', + sources=[join('src', 'multiarray', '_multiarray_tests.c.src'), + join('src', 'common', 'mem_overlap.c')], + depends=[join('src', 'common', 'mem_overlap.h'), + join('src', 'common', 'npy_extint128.h')], + libraries=['npymath']) + + ####################################################################### # _multiarray_umath module - common part # ####################################################################### @@ -933,16 +944,6 @@ def configuration(parent_package='',top_path=None): config.add_extension('_struct_ufunc_tests', sources=[join('src', 'umath', '_struct_ufunc_tests.c.src')]) - ####################################################################### - # multiarray_tests module # - ####################################################################### - - config.add_extension('_multiarray_tests', - sources=[join('src', 'multiarray', '_multiarray_tests.c.src'), - join('src', 'common', 'mem_overlap.c')], - depends=[join('src', 'common', 'mem_overlap.h'), - join('src', 'common', 'npy_extint128.h')], - libraries=['npymath']) ####################################################################### # operand_flag_tests module # |