-
Notifications
You must be signed in to change notification settings - Fork 60
/
setup.py
74 lines (62 loc) · 1.83 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
73
74
# Allow editable install into user site directory.
# See https://github.com/pypa/pip/issues/7953.
import site
import sys
site.ENABLE_USER_SITE = '--user' in sys.argv[1:]
import setuptools
try:
import numpy as np
from Cython.Build import cythonize
import scipy # nessesary for cython files
except ModuleNotFoundError as e:
raise ModuleNotFoundError("""
This package has some Cython files that will be compilled,\n
when you install this package. The Cython files use numpy and scipy.\n
Please install them before you install this packges:\n
'conda install numpy Cython scipy'
or
'pip install numpy Cython scipy'
""") from e
setuptools.setup(
name="pb_bss",
author="Lukas Drude",
author_email="[email protected]",
description="EM algorithms for integrated spatial and spectral models.",
long_description=open('README.md', encoding='utf-8').read(),
packages=setuptools.find_packages(),
install_requires=[
'dataclasses',
'matplotlib',
'scikit-learn',
'cached_property',
'einops',
'sympy', # Bingham mixture model symbolic solution dependency
# Metric dependencies
'mir_eval',
'pystoi',
'pesq',
'srmrpy @ git+https://github.com/jfsantos/SRMRpy',
],
extras_require={
'all': [
'soundFile',
'nara_wpe',
'lazy_dataset',
'IPython',
'jsonpickle',
'pytest',
'nose',
'parameterized',
'pytest-rerunfailures',
'paderbox',
]
},
classifiers=[
'Programming Language :: Python :: 3.6',
],
ext_modules=cythonize([
'pb_bss/extraction/cythonized/get_gev_vector.pyx',
'pb_bss/extraction/cythonized/c_eig.pyx',
]),
include_dirs=[np.get_include()],
)