Skip to content

Commit

Permalink
Add depends=[headers] to setup.py
Browse files Browse the repository at this point in the history
Any modification of a header file now triggers a rebuild of the C
extension module.

Closes: https://github.com/python-ldap/python-ldap/pull/33
Signed-off-by: Christian Heimes <cheimes@redhat.com>
  • Loading branch information
Christian Heimes authored and Petr Viktorin committed Nov 28, 2017
1 parent 0778a20 commit 9f6f142
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,17 @@ class OpenLDAP2:
'Modules/options.c',
'Modules/berval.c',
],
depends = [
'Modules/LDAPObject.h',
'Modules/berval.h',
'Modules/common.h',
'Modules/constants_generated.h',
'Modules/constants.h',
'Modules/functions.h',
'Modules/ldapcontrol.h',
'Modules/message.h',
'Modules/options.h',
],
libraries = LDAP_CLASS.libs,
include_dirs = ['Modules'] + LDAP_CLASS.include_dirs,
library_dirs = LDAP_CLASS.library_dirs,
Expand Down

0 comments on commit 9f6f142

Please sign in to comment.