mirror of
https://github.com/larsimmisch/pyalsaaudio.git
synced 2026-04-16 08:05:30 +00:00
55 lines
1.9 KiB
Python
Executable File
55 lines
1.9 KiB
Python
Executable File
#!/usr/bin/env python
|
|
|
|
'''This package contains wrappers for accessing the ALSA API from Python.
|
|
It is fairly complete for PCM devices and Mixer access.
|
|
'''
|
|
|
|
import subprocess
|
|
from distutils.core import setup
|
|
from distutils.extension import Extension
|
|
from sys import version
|
|
|
|
def gitrev():
|
|
rev = subprocess.check_output(['git', 'describe', '--tags', '--dirty=-dev',
|
|
'--always'])
|
|
return rev.decode('utf-8').strip()
|
|
|
|
pyalsa_version = gitrev()
|
|
|
|
# patch distutils if it's too old to cope with the "classifiers" or
|
|
# "download_url" keywords
|
|
from sys import version
|
|
if version < '2.2.3':
|
|
from distutils.dist import DistributionMetadata
|
|
DistributionMetadata.classifiers = None
|
|
DistributionMetadata.download_url = None
|
|
|
|
if __name__ == '__main__':
|
|
setup(
|
|
name = 'pyalsaaudio',
|
|
version = pyalsa_version,
|
|
description = 'ALSA bindings',
|
|
long_description = __doc__,
|
|
author = 'Casper Wilstrup',
|
|
author_email='cwi@aves.dk',
|
|
maintainer = 'Lars Immisch',
|
|
maintainer_email = 'lars@ibp.de',
|
|
license='PSF',
|
|
platforms=['posix'],
|
|
url='http://larsimmisch.github.io/pyalsaaudio/',
|
|
classifiers = [
|
|
'Development Status :: 4 - Beta',
|
|
'Intended Audience :: Developers',
|
|
'License :: OSI Approved :: Python Software Foundation License',
|
|
'Operating System :: POSIX :: Linux',
|
|
'Programming Language :: Python :: 2',
|
|
'Programming Language :: Python :: 3',
|
|
'Topic :: Multimedia :: Sound/Audio',
|
|
'Topic :: Multimedia :: Sound/Audio :: Mixers',
|
|
'Topic :: Multimedia :: Sound/Audio :: Players',
|
|
'Topic :: Multimedia :: Sound/Audio :: Capture/Recording',
|
|
],
|
|
ext_modules=[Extension('alsaaudio',['alsaaudio.c'],
|
|
libraries=['asound'])]
|
|
)
|