summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorThomas Nagy <tnagy2pow10@gmail.com>2015-06-18 23:45:11 +0200
committerAndrew Bartlett <abartlet@samba.org>2015-06-26 02:10:12 +0200
commit21f98e58da01c6be761515b46780dbec3a0efe26 (patch)
treee3fe9627d259ce9191104b3ef6c3d150df3f5bfa /buildtools
parente2c4b8967d33b610f9f076c614352e4b8fc7c558 (diff)
downloadsamba-21f98e58da01c6be761515b46780dbec3a0efe26.tar.gz
Remove PYTHONDIR and PYTHONARCHDIR in a single place
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_python.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_python.py b/buildtools/wafsamba/samba_python.py
index fb378ae071a..7546bbd6d2e 100644
--- a/buildtools/wafsamba/samba_python.py
+++ b/buildtools/wafsamba/samba_python.py
@@ -55,6 +55,10 @@ def SAMBA_CHECK_PYTHON_HEADERS(conf, mandatory=True):
else:
conf.msg("python headers", "using cache")
+ # we don't want PYTHONDIR in config.h, as otherwise changing
+ # --prefix causes a complete rebuild
+ del(conf.env.defines['PYTHONDIR'])
+ del(conf.env.defines['PYTHONARCHDIR'])
def _check_python_headers(conf, mandatory):
conf.check_python_headers(mandatory=mandatory)