-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
28 lines (19 loc) · 764 Bytes
/
Copy pathsetup.py
File metadata and controls
28 lines (19 loc) · 764 Bytes
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
import os, shutil
# Move tutorials inside mercury.explainability before packaging
if os.path.exists('tutorials'):
shutil.move('tutorials', 'mercury/explainability/tutorials')
from setuptools import setup, find_packages, Extension
import numpy
setup_args = dict(
name = 'mercury-explainability',
packages = find_packages(include = ['mercury*', 'tutorials*']),
include_package_data = True,
package_data = {'mypackage': ['tutorials/*', 'tutorials/data/*']},
ext_modules = [Extension('cut_finder', ['mercury/explainability/explainers/_tree_splitters/cut_finder.pyx'],
extra_compile_args = ['-fopenmp', '-O2'],
extra_link_args = ['-fopenmp'],
include_dirs = [numpy.get_include()]
)
]
)
setup(**setup_args)