diff options
author | Matti Picus <matti.picus@gmail.com> | 2019-12-26 17:23:49 +0200 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2019-12-26 08:23:49 -0700 |
commit | c18b3f59b5f5752ab038224fd3bdf2dadba55ecf (patch) | |
tree | 42eaee8837eee2edd1a1b16469f28ad170e74e57 /numpy/random/_examples | |
parent | 8bc83b5fdcbd17ed2bc6de6e0903c19ca94f8797 (diff) | |
download | numpy-c18b3f59b5f5752ab038224fd3bdf2dadba55ecf.tar.gz |
BUG: use tmp dir and check version for cython test (#15170)
* BUG: use tmp dir and check version for cython test
* TST, MAINT: skip on win32, fix formatting
* TST: fixes from review
* TST: fixes from review
* TST: fixes from review
Diffstat (limited to 'numpy/random/_examples')
-rw-r--r-- | numpy/random/_examples/cython/setup.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/random/_examples/cython/setup.py b/numpy/random/_examples/cython/setup.py index 19f045fc0..7ed0a3a18 100644 --- a/numpy/random/_examples/cython/setup.py +++ b/numpy/random/_examples/cython/setup.py @@ -12,6 +12,7 @@ from setuptools.extension import Extension from os.path import join, abspath, dirname path = abspath(dirname(__file__)) +defs = [('NPY_NO_DEPRECATED_API', 0)] extending = Extension("extending", sources=[join(path, 'extending.pyx')], @@ -19,10 +20,13 @@ extending = Extension("extending", np.get_include(), join(path, '..', '..') ], + define_macros=defs, ) distributions = Extension("extending_distributions", sources=[join(path, 'extending_distributions.pyx')], - include_dirs=[np.get_include()]) + include_dirs=[np.get_include()], + define_macros=defs, + ) extensions = [extending, distributions] |