forked from arsarabi/jsonvectorizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·31 lines (27 loc) · 897 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
25
26
27
28
29
30
31
#!/usr/bin/env python
import numpy as np
import setuptools
from Cython.Build import cythonize
from setuptools.extension import Extension
extensions = [
Extension('jsonvectorizer.jsontype', ['jsonvectorizer/jsontype.pyx']),
Extension('jsonvectorizer.lil', ['jsonvectorizer/lil.pyx']),
Extension('jsonvectorizer.schema', ['jsonvectorizer/schema.pyx']),
Extension(
'jsonvectorizer.jsonvectorizer', ['jsonvectorizer/jsonvectorizer.pyx']
)
]
for extension in extensions:
extension.cython_directives = {'embedsignature': True}
extension.include_dirs.append(np.get_include())
with open('requirements.txt') as f:
install_requires = f.read()
setuptools.setup(
name='jsonvectorizer',
version='0.1.0',
packages=setuptools.find_packages(),
ext_modules=cythonize(extensions),
include_dirs=[np.get_include()],
package_data={'jsonvectorizer': ['*.pxd']},
install_requires=install_requires
)