forked from yykamei/python-libldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (61 loc) · 2.43 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
# -*- coding: utf-8 -*-
# Copyright (C) 2015-2017 Yutaka Kamei
# Required Python libraries:
# - setuptools
#
# Required C libraries:
# - libldap
# - libssl
# - libsasl2
import os.path
from setuptools import setup, find_packages, Extension
with open(os.path.join(os.path.dirname(__file__), 'Version')) as f:
__version__ = f.read().strip()
ext_module = Extension('_libldap',
sources=['Modules/libldap.c',
'Modules/common.c',
'Modules/bind.c',
'Modules/unbind.c',
'Modules/search.c',
'Modules/add.c',
'Modules/modify.c',
'Modules/delete.c',
'Modules/rename.c',
'Modules/compare.c',
'Modules/abandon.c',
'Modules/whoami.c',
'Modules/passwd.c',
'Modules/cancel.c',
'Modules/start_tls.c',
'Modules/set_option.c',
'Modules/get_option.c',
'Modules/controls.c',
'Modules/result.c',
],
include_dirs=['Modules'],
libraries=['ldap_r'],
extra_compile_args=['-g', '-O2'])
setup(
name='python-libldap',
license='MIT',
author='Yutaka Kamei',
author_email='kamei@ykamei.net',
url='https://github.com/yykamei/python-libldap',
version=__version__,
description='A Python binding for libldap',
ext_modules=[ext_module],
packages=find_packages('Lib'),
package_dir={'': 'Lib'},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Programming Language :: C',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP',
],
)