diff options
author | Kevin Sheppard <kevin.k.sheppard@gmail.com> | 2019-11-21 11:10:16 +0000 |
---|---|---|
committer | Kevin Sheppard <kevin.k.sheppard@gmail.com> | 2019-11-21 11:10:16 +0000 |
commit | 7548073e58e89b414ca999d666c19189291dc1e5 (patch) | |
tree | d0d77d3bd569fc5c1374c3c306c6d26342acc100 /numpy/random/_examples/cython/setup.py | |
parent | d428127183d46b2fbd99afefa4670642addf8d6e (diff) | |
download | numpy-7548073e58e89b414ca999d666c19189291dc1e5.tar.gz |
DOC: Clean up examples of low-level random access
Test examples on Linux and Windows
Correct bug in Cython example
Improve building instructions for numba examples
Diffstat (limited to 'numpy/random/_examples/cython/setup.py')
-rw-r--r-- | numpy/random/_examples/cython/setup.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/numpy/random/_examples/cython/setup.py b/numpy/random/_examples/cython/setup.py index 315527a2d..19f045fc0 100644 --- a/numpy/random/_examples/cython/setup.py +++ b/numpy/random/_examples/cython/setup.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 """ -Build the demos +Build the Cython demonstrations of low-level access to NumPy random Usage: python setup.py build_ext -i """ @@ -11,18 +11,17 @@ from Cython.Build import cythonize from setuptools.extension import Extension from os.path import join, abspath, dirname -curpath = abspath(dirname(__file__)) +path = abspath(dirname(__file__)) extending = Extension("extending", - sources=[join(curpath, 'extending.pyx')], + sources=[join(path, 'extending.pyx')], include_dirs=[ np.get_include(), - join(curpath, '..', '..') + join(path, '..', '..') ], ) distributions = Extension("extending_distributions", - sources=[join(curpath, 'extending_distributions.pyx'), - ], + sources=[join(path, 'extending_distributions.pyx')], include_dirs=[np.get_include()]) extensions = [extending, distributions] |