-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup_build.py
99 lines (95 loc) · 2.9 KB
/
setup_build.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# License: Apache-2.0
# import os
import setuptools
import numpy
from Cython.Build import cythonize
from gators import __version__
with open('README.md', 'r') as f:
long_description = f.read().replace('\n\n', '')
# rootdir = os.path.normpath(os.path.join(__file__, os.pardir))
# print(rootdir)
# import sys
# sys.exit()
extensions = [
setuptools.Extension(
'imputer',
['gators/imputers/imputer.pyx'],
include_dirs=[numpy.get_include()],
extra_compile_args=['-O3'],
),
setuptools.Extension(
'encoder',
['gators/encoders/encoder.pyx'],
include_dirs=[numpy.get_include()],
extra_compile_args=['-O3'],
),
setuptools.Extension(
'data_cleaning',
['gators/data_cleaning/data_cleaning.pyx'],
include_dirs=[numpy.get_include()],
extra_compile_args=['-O3'],
),
setuptools.Extension(
'binning',
['gators/binning/binning.pyx'],
include_dirs=[numpy.get_include()],
extra_compile_args=['-O3'],
),
setuptools.Extension(
'clipping',
['gators/clipping/clipping.pyx'],
include_dirs=[numpy.get_include()],
extra_compile_args=['-O3'],
),
setuptools.Extension(
'scaler',
['gators/scalers/scaler.pyx'],
include_dirs=[numpy.get_include()],
extra_compile_args=['-O3'],
),
setuptools.Extension(
'feature_gen',
['gators/feature_generation/feature_gen.pyx'],
include_dirs=[numpy.get_include()],
extra_compile_args=['-O3'],
),
setuptools.Extension(
'feature_gen_dt',
['gators/feature_generation_dt/feature_gen_dt.pyx'],
include_dirs=[numpy.get_include()],
extra_compile_args=['-O3'],
),
setuptools.Extension(
'feature_gen_str',
['gators/feature_generation_str/feature_gen_str.pyx'],
include_dirs=[numpy.get_include()],
extra_compile_args=['-O3'],
)
]
setuptools.setup(
name='gators',
version=__version__,
url='https://paypal.github.io/gators/',
author='Simility Data Team',
options={'bdist_wheel': {'universal': True}},
long_description=long_description,
long_description_content_type="text_markdown",
description='Model building and Model deployment library',
maintainer='Charles Poli',
packages=setuptools.find_packages(exclude=['examples', 'doc']),
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: Apache-2 License',
'Operating System :: OS Independent',
],
python_requires='>=3.6',
license='Apache-2.0 Software License',
setup_requires=['numpy', 'Cython'],
package_data={'gators': [
'*.c',
]},
include_package_data=True,
ext_modules=cythonize(extensions, compiler_directives={
'language_level': "3"}),
zip_safe=False,
)