From 676e80bb5f560e77dc6b01eea3c9e37066c5aad2 Mon Sep 17 00:00:00 2001 From: Ian Stakenvicius Date: Fri, 27 Jan 2017 16:38:36 -0500 Subject: [PATCH] waf: disable-python - don't build python/ Signed-off-by: Ian Stakenvicius Reviewed-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- python/wscript_build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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', -- 2.47.3