summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2015-06-08 19:02:03 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-07-21 19:04:14 +0200
commit5a4e5d7cbf1849bba4bd696da1f6959d5f77b333 (patch)
tree38e694d55dc736c5bedec45139f00a3839091129 /buildtools
parent584adc4fd5919ae4518c7eb967a244c37e2d0cce (diff)
downloadsamba-5a4e5d7cbf1849bba4bd696da1f6959d5f77b333.tar.gz
buildtools: Don't configure Python more than once
Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
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 7546bbd6d2e..aa3ceb02b57 100644
--- a/buildtools/wafsamba/samba_python.py
+++ b/buildtools/wafsamba/samba_python.py
@@ -9,6 +9,10 @@ from Configure import conf
@conf
def SAMBA_CHECK_PYTHON(conf, mandatory=True, version=(2,4,2)):
# enable tool to build python extensions
+ if conf.env.HAVE_PYTHON_H:
+ conf.check_python_version(version)
+ return
+
interpreters = []
if conf.env['EXTRA_PYTHON']: