-
Notifications
You must be signed in to change notification settings - Fork 31
/
setup.py
58 lines (52 loc) · 1.37 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
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
from setuptools.extension import Extension
try:
from Cython.Build import cythonize
USE_CYTHON = True
except ImportError:
USE_CYTHON = False
ext = 'pyx' if USE_CYTHON else 'c'
extensions=[
Extension('blitzloop._audio',
['blitzloop/_audio.%s' % ext], libraries=['jack']),
]
if USE_CYTHON:
extensions=cythonize(extensions, force=True)
# res_files = []
# for dirpath, dirname, files in os.walk('blitzloop/res'):
# for fn in files:
# res_files.append(os.path.join(dirpath, fn))
# print res_files
if sys.version_info[0] >= 3:
extra_requires = []
else:
extra_requires = ['3to2']
setup(
name='blitzloop',
version='0.1',
packages=find_packages(),
ext_modules=extensions,
entry_points={
'console_scripts': [
'blitzloop = blitzloop.main:entry',
'blitzloop-single = blitzloop.play:entry',
]
},
setup_requires=extra_requires,
install_requires=extra_requires + [
'ConfigArgParse',
'Pillow',
'bottle',
'freetype-py',
'numpy',
'paste',
'pympv>=0.6.0',
'pyopengl',
'jaconv',
],
include_package_data=True,
zip_safe=False,
)