forked from mlichter/audiolab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.py
74 lines (61 loc) · 2.13 KB
/
common.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
descr = """\
Audiolab is a python package for audio file IO using numpy arrays. It supports
many different audio formats, including wav, aiff, au, flac, ogg, htk. It also
supports output to audio device (Mac OS X and Linux only).
For simplicity, a matlab-like API is provided for simple import/export; a more
complete API is also available.
Audiolab is essentially a wrapper around Erik de Castro Lopo's excellent
libsndfile:
http://www.mega-nerd.com/libsndfile/
LICENSE: audiolab is licensed under the LGPL, as is libsndfile itself. See
COPYING.txt for details.
2006-2008, David Cournapeau
"""
DISTNAME = 'scikits.audiolab'
DESCRIPTION = 'A python module to make noise from numpy arrays'
LONG_DESCRIPTION = descr
MAINTAINER = 'David Cournapeau'
MAINTAINER_EMAIL = 'cournape@gmail.com'
URL = 'http://cournape.github.com/audiolab'
LICENSE = 'LGPL'
DOWNLOAD_URL = URL
MAJOR = 0
MINOR = 11
MICRO = 0
DEV = False
CLASSIFIERS = ['Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Library or Lesser General '\
'Public License (LGPL)', 'Topic :: Multimedia :: Sound/Audio',
'Topic :: Scientific/Engineering']
def build_verstring():
return '%d.%d.%d' % (MAJOR, MINOR, MICRO)
def build_fverstring():
if DEV:
return build_verstring() + '.dev'
else:
return build_verstring()
def write_version(fname):
f = open(fname, "w")
f.write("""
short_version='%s'
version=short_version
dev=%s
if dev:
version += '.dev'
""" % (build_verstring(), DEV))
f.close()
def write_info(fname):
f = open(fname, "w")
f.writelines("# THIS FILE IS GENERATED FROM THE SETUP.PY. DO NOT EDIT.\n")
f.writelines('"""%s"""' % descr)
f.writelines("""
# version of the python module (compatibility -> use
# scikits.samplerate.version.version instead, to be consistent with numpy)
from version import short_version as version
ignore = False""")
f.close()
VERSION = build_fverstring()
INSTALL_REQUIRE = 'numpy'