forked from minepy/minepy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·55 lines (49 loc) · 1.72 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
51
52
53
54
55
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
from pkg_resources import get_platform
# import numpy only when it is needed
class build_ext_custom(build_ext):
def run(self):
import numpy
self.include_dirs.append(numpy.get_include())
build_ext.run(self)
if get_platform() == "win32" or get_platform() == "win-amd64":
libraries = []
else:
libraries = ['m']
ext_modules = [
Extension("minepy.mine",
["minepy/mine.c", "libmine/mine.c"],
libraries=libraries,
extra_compile_args=['-Wall'])
]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Programming Language :: C',
'Programming Language :: C++',
'Programming Language :: Cython',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Other',
'Operating System :: OS Independent'
]
setup(name = 'minepy',
version='1.2.6',
description='minepy - Maximal Information-based Nonparametric Exploration',
long_description=open('README.rst').read(),
author='Davide Albanese',
author_email='[email protected]',
maintainer='Davide Albanese',
maintainer_email='[email protected]',
url='http://minepy.readthedocs.io',
download_url='http://minepy.readthedocs.io',
license='GPLv3',
packages=['minepy'],
setup_requires = ['numpy >= 1.3.0'],
install_requires = ['numpy >= 1.3.0'],
classifiers=classifiers,
ext_modules=ext_modules,
cmdclass = {'build_ext': build_ext_custom}
)