-
Notifications
You must be signed in to change notification settings - Fork 42
/
setup.py
102 lines (95 loc) · 3.62 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
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup, Extension
from distutils.util import execute, newer
from distutils.spawn import spawn
#
# hack to support linking when running
# python setup.py sdist
#
import os
del os.link
if newer('./src/getdate.y', './src/getdate.c'):
execute(spawn, (['bison', '-y', '-o', './src/getdate.c', './src/getdate.y'],))
setup(name='python-kadmin',
version='0.1.1',
description='Python module for kerberos admin (kadm5)',
url='https://github.com/russjancewicz/python-kadmin',
download_url='https://github.com/russjancewicz/python-kadmin/tarball/v0.1.1',
author='Russell Jancewicz',
author_email='[email protected]',
license='MIT',
ext_modules=[
Extension(
"kadmin",
libraries=["krb5", "kadm5clnt", "kdb5"],
include_dirs=["/usr/include/", "/usr/include/et/"],
sources=[
"src/kadmin.c",
"src/PyKAdminErrors.c",
"src/PyKAdminObject.c",
"src/PyKAdminIterator.c",
"src/PyKAdminPrincipalObject.c",
"src/PyKAdminPolicyObject.c",
"src/PyKAdminCommon.c",
"src/PyKAdminXDR.c",
"src/getdate.c"
],
#extra_compile_args=["-O0"]
)
],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: System Administrators",
"Intended Audience :: Developers",
"Operating System :: POSIX",
"Programming Language :: C",
"Programming Language :: Python",
"Programming Language :: YACC",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Systems Administration :: Authentication/Directory",
]
)
setup(name='python-kadmin-local',
version='0.1.1',
description='Python module for kerberos admin (kadm5) via root local interface',
url='https://github.com/russjancewicz/python-kadmin',
download_url='https://github.com/russjancewicz/python-kadmin/tarball/v0.1.1',
author='Russell Jancewicz',
author_email='[email protected]',
license='MIT',
ext_modules=[
Extension(
"kadmin_local",
libraries=["krb5", "kadm5srv", "kdb5"],
include_dirs=["/usr/include/", "/usr/include/et/"],
sources=[
"src/kadmin.c",
"src/PyKAdminErrors.c",
"src/PyKAdminObject.c",
"src/PyKAdminIterator.c",
"src/PyKAdminPrincipalObject.c",
"src/PyKAdminPolicyObject.c",
"src/PyKAdminCommon.c",
"src/PyKAdminXDR.c",
"src/getdate.c"
],
define_macros=[('KADMIN_LOCAL', '')]
)
],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: System Administrators",
"Intended Audience :: Developers",
"Operating System :: POSIX",
"Programming Language :: C",
"Programming Language :: Python",
"Programming Language :: YACC",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Systems Administration :: Authentication/Directory",
]
)