Skip to content

Commit

Permalink
Use package to distribute ldap sub-package
Browse files Browse the repository at this point in the history
Instead of listing all Python files, use distutils' and setuptools'
`package` direcective to ship the ldap. ldap.controls, ldap.extop, and
ldap.schema packages. The modules ldapurl, ldif, and slaptest are not
packages and therefore still use `py_module`.

The `ldap.controls.pagedresults` module is now shipped and installed.

https://github.com/python-ldap/python-ldap/pull/29
Closes: #26 
Signed-off-by: Christian Heimes <cheimes@redhat.com>
  • Loading branch information
Christian Heimes authored and Petr Viktorin committed Nov 27, 2017
1 parent 875ef44 commit 4aa0d36
Showing 1 changed file with 3 additions and 29 deletions.
32 changes: 3 additions & 29 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,39 +165,13 @@ class OpenLDAP2:
py_modules = [
'ldapurl',
'ldif',
'ldap',
'slapdtest',
'ldap.async',
'ldap.compat',
],
packages = [
'ldap',
'ldap.controls',
'ldap.controls.deref',
'ldap.controls.libldap',
'ldap.controls.openldap',
'ldap.controls.ppolicy',
'ldap.controls.psearch',
'ldap.controls.pwdpolicy',
'ldap.controls.readentry',
'ldap.controls.sessiontrack',
'ldap.controls.simple',
'ldap.controls.sss',
'ldap.controls.vlv',
'ldap.cidict',
'ldap.dn',
'ldap.extop',
'ldap.extop.dds',
'ldap.filter',
'ldap.functions',
'ldap.ldapobject',
'ldap.logger',
'ldap.modlist',
'ldap.pkginfo',
'ldap.resiter',
'ldap.sasl',
'ldap.schema',
'ldap.schema.models',
'ldap.schema.subentry',
'ldap.schema.tokenizer',
'ldap.syncrepl',
],
package_dir = {'': 'Lib',},
data_files = LDAP_CLASS.extra_files,
Expand Down

0 comments on commit 4aa0d36

Please sign in to comment.