-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·72 lines (56 loc) · 2.4 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
from distutils.core import setup, Extension
from distutils.sysconfig import *
from distutils.util import *
import os
import numpy
data_files = []
# Include gsl dlls for the win32 distribution
#if get_platform() == "win32":
# dlls = ["mlpy\gslwin\libgsl-0.dll", "mlpy\gslwin\libgslcblas-0.dll"]
# data_files += [("Lib\site-packages\mlpy", dlls)]
## Python include
py_include = get_python_inc()
## Numpy header files
numpy_lib = os.path.split(numpy.__file__)[0]
numpy_include = os.path.join(numpy_lib, 'core/include')
##### Includes ######################################################################
base_include = [py_include, numpy_include]
## dtw include
dtw_include = base_include
#####################################################################################
##### Sources #######################################################################
## dtw sources
dtw_cpu_sources = ['lib/dtw_cpu/dtw_cpu_py.c']
#####################################################################################
## Extra compile args
extra_compile_args = ['-Wno-strict-prototypes']
# Setup
setup(name = 'yeps-clustering-lib',
version = '0.1.0',
requires = ['numpy (>= 1.1.0)', 'scipy'],
description = 'clustering libs for yeps tools',
author = 'Irish, Flash, fox, Pollo & WebValley Devs',
author_email = '',
url = '',
download_url = '',
license='GPLv3',
classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Operating System :: POSIX :: BSD',
'Operating System :: Unix',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Programming Language :: C',
'Programming Language :: Python',
],
package_dir = {'': 'lib'},
packages=['iodata', 'kmedoid', 'kmeans', 'knn', 'calc_dist', 'dtw_gpu'],
ext_modules=[Extension('dtw_cpu', dtw_cpu_sources,
include_dirs=dtw_include,
extra_compile_args=extra_compile_args)
]
)