forked from python-acoustics/python-acoustics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (52 loc) · 1.52 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
import os
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
import numpy as np
from Cython.Build import cythonize
if os.path.exists('README.md'):
long_description = open('README.md').read()
else:
long_description = "A Python library aimed at acousticians."
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(
name='acoustics',
version='0.0',
description="Acoustics module for Python.",
long_description=long_description,
author='Python Acoustics',
author_email='[email protected]',
license='LICENSE',
packages=find_packages(exclude=["tests"]),
package_dir={'acoustics': 'acoustics'},
package_data={'acoustics': ['data/*']},
#py_modules=['turbulence'],
scripts=[],
zip_safe=False,
install_requires=[
'numpy >=1.8',
'scipy >= 0.16',
'matplotlib',
'six >= 1.4.1',
'cython',
'pandas>=0.15',
'tabulate',
],
extras_require={
'documentation': 'sphinx',
'jit': 'numba',
'fast_fft': 'pyFFTW',
},
tests_require=['pytest'],
cmdclass={'test': PyTest},
ext_modules=cythonize('acoustics/*.pyx'),
include_dirs=[np.get_include()]
)