-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
42 lines (37 loc) · 1.52 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
import os
from setuptools import setup
from setuptools import find_packages
import numpy as np
from Cython.Build import cythonize
with open("README.md", "r") as fh:
long_description = fh.read()
ext_modules = ['dare/_argsort.pyx', 'dare/_config.pyx',
'dare/_manager.pyx', 'dare/_remover.pyx', 'dare/_simulator.pyx',
'dare/_splitter.pyx', 'dare/_tree.pyx', 'dare/_utils.pyx']
libraries = []
if os.name == 'posix':
libraries.append('m')
setup(name="dare-rf",
version="1.1.4",
description="Data Removal-Enabled Random Forests",
author="Jonathan Brophy",
author_email="jbrophy@cs.uoregon.edu",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/jjbrophy47/dare",
packages=find_packages(),
include_package_data=True,
package_dir={"dare": "dare"},
classifiers=["Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent"],
python_requires='>=3.7',
install_requires=["numpy>=1.22"],
ext_modules=cythonize(ext_modules,
compiler_directives={'language_level': 3},
annotate=True),
include_dirs=np.get_include(),
zip_safe=False)