1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-20 05:49:28 +03:00

waf: build: Respect --disable-python for third_party modules

Skips installation of samba/third_party stuff into the python directory if
--disable-python is set.

Added test after install that confirms no python modules installed.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13905

Signed-off-by: Lutz Justen <ljusten@google.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Apr 24 07:32:31 UTC 2019 on sn-devel-184
This commit is contained in:
Lutz Justen
2019-04-22 10:22:16 -07:00
committed by Andrew Bartlett
parent 3020050bdf
commit 92f30f91e4
3 changed files with 26 additions and 13 deletions

9
script/find_python.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
if [ $# -lt 1 ]; then
echo "$0: <installdir>"
exit 1;
fi
installdir=$1
exit `find ${installdir} -name \*.py | wc -l`