forked from mosquito/cysystemd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
104 lines (98 loc) · 2.92 KB
/
setup.py
File metadata and controls
104 lines (98 loc) · 2.92 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/usr/bin/env python
# encoding: utf-8
import sys
import systemd as module
from setuptools import setup, Extension
try:
from Cython.Build import cythonize
extensions = cythonize([
Extension(
"systemd._daemon",
["systemd/_daemon.pyx"],
libraries=['systemd'],
),
Extension(
"systemd._journal",
["systemd/_journal.pyx"],
libraries=['systemd'],
extra_compile_args=[
'-DSYSLOG_NAMES=1',
]
),
Extension(
"systemd.reader",
["systemd/reader.pyx"],
libraries=['systemd'],
extra_compile_args=[
'-DSYSLOG_NAMES=1',
]
),
], force=True, emit_linenums=True)
except ImportError:
extensions = [
Extension(
"systemd._daemon",
["systemd/_daemon.c"],
libraries=['systemd'],
),
Extension(
"systemd._journal",
["systemd/_journal.c"],
libraries=['systemd'],
extra_compile_args=[
'-DSYSLOG_NAMES=1',
]
),
Extension(
"systemd.reader",
["systemd/reader.c"],
libraries=['systemd'],
extra_compile_args=[
'-DSYSLOG_NAMES=1',
]
),
]
setup(
name=module.__name__,
ext_modules=extensions,
version=module.__version__,
packages=[
'systemd',
],
license=module.license,
description=module.package_info,
long_description=open("README.rst").read(),
platforms=["POSIX"],
url='http://github.com/mosquito/python-systemd',
author=module.__author__,
author_email=module.author_email,
provides=["systemd"],
build_requires=['cython'],
keywords="systemd, python, daemon, sd_notify, cython",
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Natural Language :: Russian',
'Operating System :: POSIX :: Linux',
'Programming Language :: Cython',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries',
'Topic :: System',
'Topic :: System :: Operating System',
],
extras_require={
':python_version < "3.4"': 'enum34',
':python_version < "3.3"': 'dictproxyhack',
}
)