forked from litalbarkai/open-redatam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (40 loc) · 1.31 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
from setuptools import setup, Extension, find_packages
import pybind11
# Extension module
ext_modules = [
Extension(
'redatam._redatam', # Private compiled module
sources=[
'vendor/pugixml.cpp',
'redatamlib/readers/BitArrayReader.cpp',
'redatamlib/readers/ByteArrayReader.cpp',
'redatamlib/entity/Entity.cpp',
'redatamlib/readers/FuzzyEntityParser.cpp',
'redatamlib/readers/FuzzyVariableParser.cpp',
'redatamlib/exporters/ParentIDCalculator.cpp',
'redatamlib/exporters/PyDictExporter.cpp',
'redatamlib/entity/Variable.cpp',
'redatamlib/readers/XMLParser.cpp',
'redatamlib/utils/utils.cpp',
'redatamlib/database/RedatamDatabase.cpp',
'main.cpp'
],
include_dirs=[pybind11.get_include(), 'vendor', 'redatamlib',
'redatamlib/entity', 'redatamlib/exporters', 'redatamlib/readers'],
extra_compile_args=['-std=c++11', '-O3'],
language='c++'
),
]
setup(
name='redatam',
version='0.1',
packages=find_packages(include=['redatam']),
ext_modules=ext_modules,
setup_requires=['pybind11>=2.5.0'],
install_requires=[
'pandas',
'numpy',
'chardet'
],
zip_safe=False
)