forked from mattloose/RUscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
47 lines (39 loc) · 1.44 KB
/
setup.py
File metadata and controls
47 lines (39 loc) · 1.44 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
from distutils.core import setup, Extension
from distutils.sysconfig import *
from distutils.util import *
import os
import os.path
import numpy
from distutils.command.build_py import build_py
from Cython.Distutils import build_ext
from Cython.Build import cythonize
math_lib = ['m']
extra_compile_args = ['-g', '-Wall', '-O2']
py_inc = [get_python_inc()]
np_lib = os.path.dirname(numpy.__file__)
np_inc = [os.path.join(np_lib, 'core/include')]
cmdclass = {'build_py': build_py}
cmdclass.update({'build_ext': build_ext})
packages=['test']
extensions = [Extension("events", ["src/events/events.pyx", "src/events/cevents.c"],
extra_compile_args=extra_compile_args,
libraries=math_lib,
include_dirs=py_inc + np_inc,
language = 'c'),
Extension("dtw", ["src/dtw/dtw.pyx", "src/dtw/cdtw.c"],
extra_compile_args=extra_compile_args,
libraries=math_lib,
include_dirs=py_inc + np_inc,
language = 'c')
]
setup(name = 'test',
version='0.0.2',
requires=['numpy (>=1.3.0)'],
description='abea',
author='Hasindu Gamaarachchi and James Ferguson',
author_email='hasindu@unsw.edu.au',
maintainer='Hasindu Gamaarachchi',
maintainer_email='hasindu@unsw.edu.au',
cmdclass=cmdclass,
ext_modules=cythonize(extensions),
)