diff options
author | mattip <matti.picus@gmail.com> | 2019-04-10 00:50:42 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-05-20 18:45:27 +0300 |
commit | c53b2eb729bae1f248a2654dfcfa4a3dd3e2902b (patch) | |
tree | eed1d982201dc892984feaca355565217069eb20 /numpy/random/examples/cython/setup.py | |
parent | 7e8e19f9a3b452fdbd992568348b393c31fba005 (diff) | |
download | numpy-c53b2eb729bae1f248a2654dfcfa4a3dd3e2902b.tar.gz |
BENCH: convert bencmarks to asv format
remove files that were part of the origal repo
rework randomgen docs to integrate with numpy and fix some links
remove convenience functions, require explicit call to gen.brng
move code out of numpy.random.randomgen into numpy.random
Diffstat (limited to 'numpy/random/examples/cython/setup.py')
-rw-r--r-- | numpy/random/examples/cython/setup.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/numpy/random/examples/cython/setup.py b/numpy/random/examples/cython/setup.py new file mode 100644 index 000000000..d7a04f75a --- /dev/null +++ b/numpy/random/examples/cython/setup.py @@ -0,0 +1,21 @@ +# python setup.py build_ext -i +import numpy as np +from distutils.core import setup +from Cython.Build import cythonize +from setuptools.extension import Extension +from os.path import join + +extending = Extension("extending", + sources=['extending.pyx'], + include_dirs=[np.get_include()]) +distributions = Extension("extending_distributions", + sources=['extending_distributions.pyx', + join('..', '..', '..', 'randomgen', 'src', + 'distributions', 'distributions.c')], + include_dirs=[np.get_include()]) + +extensions = [extending, distributions] + +setup( + ext_modules=cythonize(extensions) +) |