summaryrefslogtreecommitdiffstats
path: root/ipapython/setup.py
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2019-04-08 08:05:52 +0200
committerChristian Heimes <cheimes@redhat.com>2019-04-26 12:53:23 +0200
commit2a459ce0f2c5e2af2dbe028afcf1d4e83875ce60 (patch)
tree8d71dfc6611ea433511d257282e21dac6aa0ed1d /ipapython/setup.py
parentc3144111306a2886893b598db695026fc05c8a1f (diff)
Make python-ldap optional for PyPI packages
python-ldap is a Python package with heavy C extensions. In order to build python-ldap, not only OpenLDAP development headers are necessary, but also OpenSSL, Cyrus SASL, and MIT KRB5 development headers. A fully functional ipaclient doesn't need an LDAP driver. It talks JSON RPC over HTTPS to a server. python-ldap is only used by ipapython.dn.DN to convert a string to a DN with ldap_str2dn(). The function is simple and can be wrapped with ctypes in a bunch of lines. Related: https://pagure.io/freeipa/issue/6468 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'ipapython/setup.py')
-rw-r--r--ipapython/setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipapython/setup.py b/ipapython/setup.py
index 8bba2fe4f..228e2040e 100644
--- a/ipapython/setup.py
+++ b/ipapython/setup.py
@@ -43,11 +43,11 @@ if __name__ == '__main__':
# "ipalib", # circular dependency
"ipaplatform",
"netaddr",
- "python-ldap",
"six",
],
extras_require={
"install": ["dbus-python"], # for certmonger
+ "ldap": ["python-ldap"], # ipapython.ipaldap
# CheckedIPAddress.get_matching_interface
"netifaces": ["netifaces"],
},