diff options
author | Cristiano Urban <cristiano.urban.slack@gmail.com> | 2019-03-03 08:57:19 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-03-16 06:53:12 +0700 |
commit | 3ec87518bf31a751a19427cbab665c4ff0053da4 (patch) | |
tree | fb5bddd5984e4102877aa0b12e8922005d68b093 /python/suds-jurko | |
parent | 1e9843d5f937d014d3c60c8a079d7e9239bf0d84 (diff) |
python/suds-jurko: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/suds-jurko')
-rw-r--r-- | python/suds-jurko/README | 8 | ||||
-rw-r--r-- | python/suds-jurko/suds-jurko.SlackBuild | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/python/suds-jurko/README b/python/suds-jurko/README index 488a5481d087f..3c88d60ff3be1 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 d360c390d55a0..cc692050175ce 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 |