diff options
author | Andrew Bartlett <abartlet@samba.org> | 2019-02-15 17:45:27 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-03-21 04:06:15 +0000 |
commit | 760b176d86a51048b01f72a5e29718c5c9c558ff (patch) | |
tree | 226a3172d7af9e6a199f67efe80ebd3edb7b77f5 /wscript | |
parent | 24127acae0f05f0011c4008e75f1a1de31584199 (diff) | |
download | samba-760b176d86a51048b01f72a5e29718c5c9c558ff.tar.gz |
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 <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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']: |