from waflib.Configure import conf
@conf
-def SAMBA_CHECK_PYTHON(conf, version=(3,4,0)):
+def SAMBA_CHECK_PYTHON(conf, version=(3,6,0)):
- if conf.env.disable_python:
- version=(2,6,0)
+ if conf.env.enable_fuzzing:
+ version=(3,5,0)
# enable tool to build python extensions
if conf.env.HAVE_PYTHON_H:
if not bld.PYTHON_BUILD_IS_ENABLED():
enabled = False
+ # Save time, no need to build python bindings when fuzzing
+ if bld.env.enable_fuzzing:
+ enabled = False
+
# when we support static python modules we'll need to gather
# the list from all the SAMBA_PYTHON() targets
if init_function_sentinel is not None: