-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathsetup.py
More file actions
65 lines (53 loc) · 1.65 KB
/
setup.py
File metadata and controls
65 lines (53 loc) · 1.65 KB
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
56
57
58
59
60
61
62
63
64
65
import setuptools
import setuptools.command.build_ext
import ABXpy
class build_ext(setuptools.command.build_ext.build_ext):
def finalize_options(self):
setuptools.command.build_ext.build_ext.finalize_options(self)
# Prevent numpy from thinking it is still in its setup process:
__builtins__.__NUMPY_SETUP__ = False
import numpy
self.include_dirs.append(numpy.get_include())
setuptools.setup(
name='ABXpy',
version=ABXpy.version,
author='Thomas Schatz',
description='ABX discrimination task',
long_description=open('README.rst').read(),
url='https://github.com/bootphon/ABXpy',
license='LICENSE.txt',
packages=setuptools.find_packages(exclude='test'),
# needed for cython/setuptools, see
# http://docs.cython.org/en/latest/src/quickstart/build.html
zip_safe=False,
setup_requires=[
'editdistance',
'cython',
'setuptools>=18.0',
'numpy>=1.9.0',
'pytest-runner'
],
install_requires=[
'h5py >= 2.2.1',
'numpy >= 1.8.0',
'pandas >= 0.13.1',
'scipy >= 0.13.0',
'tables',
],
tests_require=[
'h5features',
'pytest>=2.6',
'pytest-cov'
],
ext_modules=[setuptools.Extension(
'ABXpy.distances.metrics.dtw',
sources=['ABXpy/distances/metrics/dtw/dtw.pyx'],
extra_compile_args=['-O3'])],
cmdclass={'build_ext': build_ext},
entry_points={'console_scripts': [
'abx-task = ABXpy.task:main',
'abx-distance = ABXpy.distance:main',
'abx-analyze = ABXpy.analyze:main',
'abx-score = ABXpy.score:main',
]}
)