forked from crillab/pyxai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
43 lines (40 loc) · 2.32 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
import os
from distutils.core import Extension
from setuptools import setup, find_packages
__version__ = open(os.path.join(os.path.dirname(__file__), 'pyxai/version.txt'), encoding='utf-8').read()
print("setup version", __version__)
setup(name='pyxai',
version=__version__,
python_requires='>=3.6',
project_urls={
'Documentation': 'http://www.cril.univ-artois.fr/pyxai/',
'Installation': 'http://www.cril.univ-artois.fr/pyxai/documentation/installation/',
'Git': 'https://github.com/crillab/pyxai'
},
author='Gilles Audemard, Steve Bellart, Louenas Bounia, Jean-Marie Lagniez, Pierre Marquis, Nicolas Szczepanski:',
author_email='[email protected], [email protected], [email protected], [email protected], [email protected], [email protected]',
maintainer='Gilles Audemard, Nicolas Szczepanski',
maintainer_email='[email protected], [email protected]',
keywords='XAI AI ML explainable learning',
classifiers=['Topic :: Scientific/Engineering :: Artificial Intelligence', 'Topic :: Education'],
packages=find_packages(), # exclude=["problems/g7_todo/"]),
package_dir={'pyxai': 'pyxai'},
install_requires=['lxml', 'numpy', 'wheel', 'pandas', 'termcolor', 'shap', 'wordfreq', 'python-sat[pblib,aiger]', 'xgboost==1.7.3', 'pycsp3', 'matplotlib', 'dill', 'lightgbm', 'docplex', 'ortools'],
extras_require={
"gui": ['pyqt6'],
},
include_package_data=True,
description='Explaining Machine Learning Classifiers in Python',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md'), encoding='utf-8').read(),
long_description_content_type='text/markdown',
license='MIT',
ext_modules=[Extension(
"c_explainer",
["pyxai/sources/solvers/GREEDY/src/bt_wrapper.cc", "pyxai/sources/solvers/GREEDY/src/Explainer.cc",
"pyxai/sources/solvers/GREEDY/src/Tree.cc", "pyxai/sources/solvers/GREEDY/src/Node.cc",
"pyxai/sources/solvers/GREEDY/src/bcp/ParserDimacs.cc", "pyxai/sources/solvers/GREEDY/src/bcp/Problem.cc",
"pyxai/sources/solvers/GREEDY/src/bcp/ProblemTypes.cc", "pyxai/sources/solvers/GREEDY/src/bcp/Propagator.cc",
],
language="c++")],
headers=['pyxai/sources/solvers/GREEDY/src/Tree.h'],
platforms='LINUX')