-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathsetup.py
47 lines (44 loc) · 1.27 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
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext as _build_ext
import setuptools.command.install
class build_ext(_build_ext):
def finalize_options(self):
import numpy
from Cython.Build.Dependencies import cythonize
_build_ext.finalize_options(self)
self.include_dirs.append(numpy.get_include())
self.distribution.ext_modules = cythonize(
self.distribution.ext_modules,
)
setup(name='untwist',
version='0.1.dev1',
author='Gerard Roma',
author_email='[email protected]',
packages=[
'untwist',
'untwist.base',
'untwist.data',
'untwist.analysis',
'untwist.utilities',
'untwist.soundcard',
'untwist.transforms',
'untwist.filters',
'untwist.factorizations',
'untwist.neuralnetworks'
],
setup_requires=['cython', 'numpy'],
install_requires=[
'cython',
'h5py',
'numpy',
'soundfile',
'scipy',
'six',
'theano',
'matplotlib'
],
ext_modules=[
Extension(
"untwist.transforms.meddis", ["untwist/transforms/meddis.pyx"])],
cmdclass={'build_ext': build_ext},
)