From 9f6f1428fed9976f1215ea80a49004ddad7e96f4 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 28 Nov 2017 11:15:32 +0100 Subject: [PATCH] Add depends=[headers] to setup.py 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 --- setup.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/setup.py b/setup.py index 9694fa5..f09d9c3 100644 --- a/setup.py +++ b/setup.py @@ -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,