1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/usr/bin/env python3
"""
Build the demos
Usage: 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, abspath, dirname
curpath = abspath(dirname(__file__))
extending = Extension("extending",
sources=[join(curpath, 'extending.pyx')],
include_dirs=[
np.get_include(),
join(curpath, '..', '..')
],
)
distributions = Extension("extending_distributions",
sources=[join(curpath, 'extending_distributions.pyx'),
],
include_dirs=[np.get_include()])
extensions = [extending, distributions]
setup(
ext_modules=cythonize(extensions)
)
|