-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
51 lines (45 loc) · 1.59 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
#!/usr/bin/env python
from setuptools import setup, Extension
import gum
import os
doclines = gum.__doc__.split("\n")
classifiers = """\
Development Status :: 4 - Beta
Environment :: X11 Applications :: GTK
Intended Audience :: End Users/Desktop
License :: OSI Approved :: BSD License
Natural Language :: English
Operating System :: POSIX :: Linux
Programming Language :: Python
Topic :: Multimedia :: Sound/Audio :: Editors
"""
c_files = ['gum/fast/fast.c', 'gum/fx/_svf.c']
for path in c_files:
if not os.path.exists(path):
import Cython.Compiler.Main
Cython.Compiler.Main.compile(path[:-2] + '.pyx')
setup(name = 'gum-audio',
version = gum.__version__,
description = doclines[0],
author = 'Pierre',
author_email = '[email protected]',
url = gum.__url__,
license = "BSD License",
long_description = "\n".join(doclines[2:]),
classifiers = filter(None, classifiers.split("\n")),
packages = ['gum', 'gum.lib',
'gum.models', 'gum.controllers', 'gum.views',
'gum.fx'],
ext_modules = [Extension('gum.fast', ['gum/fast/fast.c'],
libraries=['cairo']),
Extension('gum.fx._svf', ['gum/fx/_svf.c'])],
scripts = ['gum/scripts/gum'],
package_data = {
'gum': ['data/*'],
},
include_package_data=True,
requires = ['PyGTK', 'numpy', 'pyalsaaudio (>=0.6)',
'samplerate', 'pysndfile', 'enum34'],
install_requires = ['numpy', 'pyalsaaudio>=0.6',
'samplerate', 'pysndfile', 'enum34']
)