Skip to content

Commit 9f6f142

Browse files
tiranencukou
authored andcommitted
Add depends=[headers] to setup.py
Any modification of a header file now triggers a rebuild of the C extension module. Closes: #33 Signed-off-by: Christian Heimes <cheimes@redhat.com>
1 parent 0778a20 commit 9f6f142

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

setup.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,17 @@ class OpenLDAP2:
142142
'Modules/options.c',
143143
'Modules/berval.c',
144144
],
145+
depends = [
146+
'Modules/LDAPObject.h',
147+
'Modules/berval.h',
148+
'Modules/common.h',
149+
'Modules/constants_generated.h',
150+
'Modules/constants.h',
151+
'Modules/functions.h',
152+
'Modules/ldapcontrol.h',
153+
'Modules/message.h',
154+
'Modules/options.h',
155+
],
145156
libraries = LDAP_CLASS.libs,
146157
include_dirs = ['Modules'] + LDAP_CLASS.include_dirs,
147158
library_dirs = LDAP_CLASS.library_dirs,

0 commit comments

Comments
 (0)