From 3ec87518bf31a751a19427cbab665c4ff0053da4 Mon Sep 17 00:00:00 2001 From: Cristiano Urban Date: Sun, 3 Mar 2019 08:57:19 +0700 Subject: python/suds-jurko: Add python3 support. Signed-off-by: Willy Sudiarto Raharjo --- python/suds-jurko/README | 8 ++++++++ python/suds-jurko/suds-jurko.SlackBuild | 5 +++++ 2 files changed, 13 insertions(+) (limited to 'python/suds-jurko') diff --git a/python/suds-jurko/README b/python/suds-jurko/README index 488a5481d087..3c88d60ff3be 100644 --- a/python/suds-jurko/README +++ b/python/suds-jurko/README @@ -1,2 +1,10 @@ suds-jurko is a fork of suds, a lightweight SOAP-based web service client for Python. + +python3 is an optional dependency. + +If you want to build the package with python3 support +you have to pass the PYTHON3 parameter to the script +as follows: + + PYTHON3=yes ./suds-jurko.SlackBuild diff --git a/python/suds-jurko/suds-jurko.SlackBuild b/python/suds-jurko/suds-jurko.SlackBuild index d360c390d55a..cc692050175c 100644 --- a/python/suds-jurko/suds-jurko.SlackBuild +++ b/python/suds-jurko/suds-jurko.SlackBuild @@ -71,6 +71,11 @@ find -L . \ python setup.py install --root=$PKG +# Install python3 bindings. Default is no. +if [ "${PYTHON3:-no}" = "yes" ]; then + python3 setup.py install --root=$PKG +fi + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -- cgit v1.2.3