Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
55 lines (49 loc) · 1.4 KB
/
Copy pathsetup.py
File metadata and controls
55 lines (49 loc) · 1.4 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
48
49
50
51
52
53
54
55
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='fridh@fridh.nl',
license='LICENSE',
packages=find_packages(exclude=["tests"]),
#py_modules=['turbulence'],
scripts=[],
zip_safe=False,
install_requires=[
'numpy >=1.8',
'scipy >= 0.14',
'matplotlib',
'six >= 1.4.1',
'cython',
'numexpr',
],
extras_require={
'jit': 'numba',
'fast_fft': 'pyFFTW',
'io': 'pandas',
},
tests_require=['pytest'],
cmdclass={'test': PyTest},
ext_modules=cythonize('acoustics/*.pyx'),
include_dirs=[np.get_include()]
)