-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
76 lines (69 loc) · 2.14 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
75
76
import os
from setuptools import setup, Extension
import sys
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
have_cython = False
script_args = []
if not on_rtd:
try:
from Cython.Distutils import build_ext
have_cython = True
except ImportError:
from distutils.command.build_ext import build_ext
script_args.append('build_ext')
cmd_class = {'build_ext': build_ext}
else:
cmd_class = {}
script_args.extend(sys.argv[1:])
if have_cython:
build_table_mem_efficient = Extension(
'radiotool.algorithms.build_table_mem_efficient',
['radiotool/algorithms/build_table_mem_efficient.pyx'],
extra_compile_args=['-O3'])
build_table_full_backtrace = Extension(
'radiotool.algorithms.build_table_full_backtrace',
['radiotool/algorithms/build_table_full_backtrace.pyx'],
extra_compile_args=['-O3'])
else:
build_table_mem_efficient = Extension(
'radiotool.algorithms.build_table_mem_efficient',
['radiotool/algorithms/build_table_mem_efficient.c'],
extra_compile_args=['-O3'])
build_table_full_backtrace = Extension(
'radiotool.algorithms.build_table_full_backtrace',
['radiotool/algorithms/build_table_full_backtrace.c'],
extra_compile_args=['-O3'])
setup(
name='radiotool',
version='0.4.3',
description='Tools for constructing and retargeting audio',
long_description=open('README.rst').read(),
url='https://github.com/ucbvislab/radiotool',
#download_url='http://github.com/ucbvislab/radiotool/tarball/v0.4',
author='Steve Rubin',
author_email='[email protected]',
packages=[
'radiotool',
'radiotool.composer',
'radiotool.algorithms'
],
ext_modules=[
build_table_mem_efficient,
build_table_full_backtrace
],
cmdclass=cmd_class,
script_args=script_args,
license='ISC',
install_requires=[
'Cython',
'numpy',
'scipy',
'scikits.audiolab',
'librosa'
],
extras_require={
'xmp': ['python-xmp-toolkit']
},
# test_suite='nose.collector',
# tests_require=['nose']
)