-
Notifications
You must be signed in to change notification settings - Fork 44
/
setup.py
24 lines (21 loc) · 738 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from distutils.core import setup
from Cython.Build import cythonize
from distutils.extension import Extension
import numpy as np
# To compile and install locally run "python setup.py build_ext --inplace"
# To install library to Python site-packages run "python setup.py build_ext install"
ext_modules = [
Extension(
'ochumanApi._mask',
sources=['ochumanApi/maskApi.c', 'ochumanApi/_mask.pyx'],
include_dirs = [np.get_include(), './'],
extra_compile_args=['-Wno-cpp', '-Wno-unused-function', '-std=c99'],
)
]
setup(name='ochumanApi',
packages=['ochumanApi'],
package_dir = {'ochumanApi': 'ochumanApi'},
version='0.0',
ext_modules=
cythonize(ext_modules)
)