diff options
author | Petr Viktorin <pviktori@redhat.com> | 2015-06-08 19:02:03 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-07-21 19:04:14 +0200 |
commit | 5a4e5d7cbf1849bba4bd696da1f6959d5f77b333 (patch) | |
tree | 38e694d55dc736c5bedec45139f00a3839091129 /buildtools | |
parent | 584adc4fd5919ae4518c7eb967a244c37e2d0cce (diff) | |
download | samba-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.py | 4 |
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']: |