forked from jeremygray/PySoundCard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (52 loc) · 2.12 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
#!/usr/bin/env python
from setuptools import setup
from sys import platform
from platform import architecture
import shutil
if platform == 'win32' and architecture()[0] == '32bit':
shutil.copy2('win/portaudio32.dll', 'win/portaudio.dll')
portaudio = [('', ['win/portaudio.dll', 'win/portaudio_license'])]
elif platform == 'win32' and architecture()[0] == '64bit':
shutil.copy2('win/portaudio64.dll', 'win/portaudio.dll')
portaudio = [('', ['win/portaudio.dll', 'win/portaudio_license'])]
else:
portaudio = []
setup(
name='PySoundCard',
version='0.5.0',
description='An audio library based on PortAudio, CFFI and NumPy',
author='Bastian Bechtold',
author_email='[email protected]',
url='https://github.com/bastibe/PySoundCard',
keywords=['audio', 'portaudio'],
py_modules=['pysoundcard'],
data_files=portaudio,
license='BSD 3-Clause License',
install_requires=['numpy',
'cffi>=0.6'],
platforms='any',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Other Environment',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Multimedia :: Sound/Audio'
],
long_description='''
PySoundCard can play and record audio.
Audio devices are supported through PortAudio_, which is a free,
cross-platform, open-source audio I/O library that runs on many
operating systems including Windows, OS X and Linux. It is
accessed through CFFI_, which is a foreign function interface for
Python calling C code. CFFI is supported for CPython 2.6+, 3.x and
PyPy 2.0+. PySoundCard represents audio data as NumPy arrays.
You must have PortAudio installed in order to run PySoundCard.
.. _PortAudio: http://www.portaudio.com/
.. _CFFI: http://cffi.readthedocs.org/
''')