-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·82 lines (70 loc) · 2.64 KB
/
setup.py
File metadata and controls
executable file
·82 lines (70 loc) · 2.64 KB
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
75
76
77
78
79
80
81
82
#!/usr/bin/env python
# -*- coding: ISO-8859-1 -*-
from setuptools import setup, Extension # find_packages
import sys; sys.path.append("src")
from os import path
from version import version
# build extension module which replaces the Python audio output buffer
# by a C version, which should help preventing audio dropouts.
# You need the libao header files for building (but on the other hand,
# you don't need the pyao extension module when you use bufferedao)
buildbufferedaoext = True
# list of supported locales
locales = ["de", "it", "fr", "pl"]
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
# list of packages
#
packages = ["pytone",
"pytone.services", "pytone.services.players", "pytone.services.songdbs",
"pytone.plugins", "pytone.plugins.audioscrobbler"]
#
# list of extension modules to be built
#
ext_modules = [Extension("pytone.pcm", sources=["src/pcm/pcm.c"])]
if buildbufferedaoext:
ext_modules.append(Extension("pytone.bufferedao",
sources=["src/bufferedao.c"],
libraries=["ao"]))
#
# list of data files to be installed
#
mo_files = ["locale/%s/LC_MESSAGES/PyTone.mo" % locale for locale in locales]
data_files=[('share/locale/de/LC_MESSAGES', mo_files)]
#
# list of scripts to be installed
#
# Note that we (ab-)use distutils scripts option to install our wrapper
# files (hopefully) at the correct location.
scripts=['pytone', 'pytonectl']
#
# additional package metadata
#
classifiers = ["Development Status :: 5 - Production/Stable",
"Environment :: Console :: Curses",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Multimedia :: Sound/Audio :: Players"]
addargs = {"classifiers": classifiers}
setup(name="PyTone",
version=version,
description="Powerful music jukebox with a curses based GUI.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Jörg Lehmann",
author_email="joerg@luga.de",
url="http://www.luga.de/pytone/",
license="GPL",
python_requires="~=3.5",
install_requires=["mutagen"],
package_dir={"pytone": "src"},
packages=packages,
ext_modules=ext_modules,
data_files=data_files,
scripts=scripts,
**addargs)