From 760b176d86a51048b01f72a5e29718c5c9c558ff Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 15 Feb 2019 17:45:27 +1300 Subject: build: Do not make python mandatory to build Clearly we have python or else we would not be running, so this is about if we have a new enough version. Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- wscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index 4a5fc421baa..ff6dae23330 100644 --- a/wscript +++ b/wscript @@ -151,7 +151,8 @@ def configure(conf): if not (Options.options.without_ad_dc): raise Errors.WafError('--disable-python requires --without-ad-dc') - conf.SAMBA_CHECK_PYTHON(mandatory=True, version=(2, 6, 0)) + conf.SAMBA_CHECK_PYTHON(mandatory=not conf.env.disable_python, + version=(2, 6, 0)) conf.SAMBA_CHECK_PYTHON_HEADERS(mandatory=(not conf.env.disable_python)) if sys.platform == 'darwin' and not conf.env['HAVE_ENVIRON_DECL']: -- cgit v1.2.1