-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·60 lines (53 loc) · 2.01 KB
/
setup.py
File metadata and controls
executable file
·60 lines (53 loc) · 2.01 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
#!/usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
try:
from Cython.Distutils import build_ext
except ImportError:
from Pyrex.Distutils import build_ext
import subprocess
def pkgconfig_include_dirs(*packages):
flag_map = {'-I': 'include_dirs'}
kw = {}
for token in subprocess.check_output(['pkg-config', '--cflags'] + list(packages)).split():
kw.setdefault(flag_map.get(token[:2]), []).append(token[2:])
return kw['include_dirs']
package_version = '0.2.5'
setup (
cmdclass = {'build_ext' : build_ext},
name = 'python-aosd',
version = package_version,
ext_modules = [
Extension(
'aosd',
['src/aosd.pyx'],
include_dirs= pkgconfig_include_dirs('pangocairo') + ['/usr/include/libaosd', '/usr/include/pycairo'],
libraries = ['aosd', 'aosd-text']
)
],
requires = ['cairo'],
author = u'Armin H\u00e4berling',
author_email = 'armin.aha@gmail.com',
url = 'https://github.com/arminha/python-aosd',
download_url = 'https://github.com/arminha/python-aosd/archive/' + package_version + '.tar.gz',
description = 'Python bindings for libaosd',
long_description =
'''
python-aosd is a Python binding for libaosd: an on screen display (OSD) library, which uses Cairo to create high quality rendered graphics to be overlaid on top of the screen.
''',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: X11 Applications',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Programming Language :: Cython',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Intended Audience :: Developers',
'Topic :: Desktop Environment',
'Topic :: Software Development :: Libraries',
],
)