summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorIan Stakenvicius <axs@gentoo.org>2017-01-27 16:38:36 -0500
committerAndrew Bartlett <abartlet@samba.org>2017-03-10 07:31:12 +0100
commit676e80bb5f560e77dc6b01eea3c9e37066c5aad2 (patch)
tree9feba8279514e4d9ae9acae484b5f14ab1ea1114 /python
parent81ff0f306523079396e8538d5cbff7e9f008f062 (diff)
downloadsamba-676e80bb5f560e77dc6b01eea3c9e37066c5aad2.tar.gz
waf: disable-python - don't build python/
Signed-off-by: Ian Stakenvicius <axs@gentoo.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'python')
-rw-r--r--python/wscript_build8
1 files 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',