From: Ian Stakenvicius Date: Fri, 27 Jan 2017 21:38:36 +0000 (-0500) Subject: waf: disable-python - don't build python/ X-Git-Tag: tdb-1.3.13~543 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=676e80bb5f560e77dc6b01eea3c9e37066c5aad2;p=thirdparty%2Fsamba.git waf: disable-python - don't build python/ Signed-off-by: Ian Stakenvicius Reviewed-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/python/wscript_build b/python/wscript_build index fa3b8b5de17..87da26f710f 100644 --- a/python/wscript_build +++ b/python/wscript_build @@ -5,7 +5,8 @@ bld.SAMBA_LIBRARY('samba_python', deps='LIBPYTHON pytalloc-util pyrpc_util', grouping_library=True, private_library=True, - pyembed=True) + pyembed=True, + enabled=bld.PYTHON_BUILD_IS_ENABLED()) bld.SAMBA_SUBSYSTEM('LIBPYTHON', source='modules.c', @@ -13,7 +14,7 @@ bld.SAMBA_SUBSYSTEM('LIBPYTHON', init_function_sentinel='{NULL,NULL}', deps='talloc', pyext=True, - ) + enabled=bld.PYTHON_BUILD_IS_ENABLED()) for env in bld.gen_python_environments(): pytalloc_util = bld.pyembed_libname('pytalloc-util') @@ -25,7 +26,8 @@ for env in bld.gen_python_environments(): realname='samba/_glue.so' ) -for env in bld.gen_python_environments(): +if bld.PYTHON_BUILD_IS_ENABLED(): + for env in bld.gen_python_environments(): # install out various python scripts for use by make test bld.SAMBA_SCRIPT('samba_python_files', pattern='samba/**/*.py',