-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
43 lines (37 loc) · 1.11 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
43
from setuptools import setup
from setuptools import find_packages
from shutil import copyfile, rmtree
import os
import glob
def build_package():
try:
rmtree('sklearn_explain')
except:
pass
os.mkdir('sklearn_explain')
os.mkdir('sklearn_explain/reason_codes')
for file in glob.glob('reason_codes/*.py'):
copyfile(file, 'sklearn_explain/' + file)
copyfile('explainer.py' ,
'sklearn_explain/explainer.py')
copyfile('README.md' ,
'sklearn_explain/README.md')
copyfile('LICENSE' ,
'sklearn_explain/LICENSE')
copyfile('__init__.py',
'sklearn_explain/__init__.py')
build_package();
setup(name='sklearn_explain',
version='1.0',
description='sklearn_explain',
author='Antoine CARME',
author_email='[email protected]',
url='https://github.com/antoinecarme/sklearn_explain',
license='BSD 3-clause',
packages=['sklearn_explain' , 'sklearn_explain/reason_codes'],
install_requires=[
'scipy',
'pandas',
'sklearn',
])
rmtree('sklearn_explain')