diff options
author | Alexander Verbovetsky <alik@ejik.org> | 2021-01-29 01:32:54 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-01-30 10:29:14 +0700 |
commit | 8183a67a2414e0746b47d4b4d43c246c8bd804bb (patch) | |
tree | 8676c20a492c5f7bc01c51651f0e3d2c1f636b24 /libraries/python-ruamel.yaml/python-ruamel.yaml.SlackBuild | |
parent | 59ee771597582c667b66157d82f7d6c9e6635b52 (diff) |
libraries/python-ruamel.yaml: Add optional python3 support.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/python-ruamel.yaml/python-ruamel.yaml.SlackBuild')
-rw-r--r-- | libraries/python-ruamel.yaml/python-ruamel.yaml.SlackBuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libraries/python-ruamel.yaml/python-ruamel.yaml.SlackBuild b/libraries/python-ruamel.yaml/python-ruamel.yaml.SlackBuild index 17b1b8ee01f6..9eb2692772e6 100644 --- a/libraries/python-ruamel.yaml/python-ruamel.yaml.SlackBuild +++ b/libraries/python-ruamel.yaml/python-ruamel.yaml.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python-ruamel.yaml -# Copyright 2019, Alexander Verbovetsky, Moscow, Russia +# Copyright 2019-2021, Alexander Verbovetsky, Moscow, Russia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=python-ruamel.yaml VERSION=${VERSION:-0.16.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -58,6 +58,10 @@ find -L . \ RUAMEL_NO_PIP_INSTALL_CHECK=1 python setup.py install --root=$PKG +if $(python3 -c 'import sys' 2>/dev/null); then + RUAMEL_NO_PIP_INSTALL_CHECK=1 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 |