summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLutz Justen <ljusten@google.com>2019-04-22 10:22:16 -0700
committerAndrew Bartlett <abartlet@samba.org>2019-04-24 07:32:31 +0000
commit92f30f91e44dba7e85d56279bbbe3662d0b5faeb (patch)
tree69e65604cea2972578810efdc45729f54b7058fa /script
parent3020050bdf9df077ec9a0e962a689557187174ac (diff)
downloadsamba-92f30f91e44dba7e85d56279bbbe3662d0b5faeb.tar.gz
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
Diffstat (limited to 'script')
-rwxr-xr-xscript/autobuild.py2
-rwxr-xr-xscript/find_python.sh9
2 files changed, 11 insertions, 0 deletions
diff --git a/script/autobuild.py b/script/autobuild.py
index e1aea054e1f..2b27427c949 100755
--- a/script/autobuild.py
+++ b/script/autobuild.py
@@ -405,6 +405,7 @@ tasks = {
("configure", "./configure.developer --picky-developer ${PREFIX} --with-profiling-data --disable-python --without-ad-dc", "text/plain"),
("make", "make -j", "text/plain"),
("install", "make install", "text/plain"),
+ ("find-python", "script/find_python.sh ${PREFIX}", "text/plain"),
("test", "make test-nopython", "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain"),
("clean", "make clean", "text/plain"),
@@ -439,6 +440,7 @@ tasks = {
("configure", "PYTHON=python2 ./configure.developer --picky-developer ${PREFIX} --with-profiling-data --disable-python --without-ad-dc", "text/plain"),
("make", "PYTHON=python2 make -j", "text/plain"),
("install", "PYTHON=python2 make install", "text/plain"),
+ ("find-python", "script/find_python.sh ${PREFIX}", "text/plain"),
("test", "make test-nopython", "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain"),
("clean", "PYTHON=python2 make clean", "text/plain"),
diff --git a/script/find_python.sh b/script/find_python.sh
new file mode 100755
index 00000000000..e9afdbda999
--- /dev/null
+++ b/script/find_python.sh
@@ -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`