-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathsetup.py
50 lines (46 loc) · 1.63 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
44
45
46
47
48
49
50
from distutils.core import setup, Extension
import os
import numpy as np
# Configure extension
libraries = []
if os.name == 'posix':
libraries.append('m')
compiledtrees_ext = Extension(
'compiledtrees._compiled',
['compiledtrees/_compiled.c'],
include_dirs=[np.get_include()],
libraries=libraries,
extra_link_args=["-Wl,--allow-multiple-definition"],
extra_compile_args=["-O3", "-Wno-unused-function"]
)
setup(
name='sklearn-compiledtrees',
version='1.4',
author='Andrew Tulloch',
author_email='andrew@tullo.ch',
maintainer='Andrew Tulloch',
maintainer_email='andrew@tullo.ch',
url='https://github.com/ajtulloch/sklearn-compiledtrees',
description='Compiled scikit-learn decision trees for faster evaluation',
packages=['compiledtrees'],
ext_modules=[compiledtrees_ext],
install_requires=['joblib', 'scikit-learn', 'six', 'numpy'],
license='MIT License',
platforms='Any',
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Programming Language :: C',
'Programming Language :: Python',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',])