aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-18 11:01:50 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-18 11:01:50 +0700
commitfd36a42e5ba263bc824e3a7a0875ca453ab74714 (patch)
treee37c780d2d6fc38f836487d1b8587eaebc4ac695
parent847e3647160542d30fc4673a68f98a424a62d391 (diff)
python/pbr: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/pbr/pbr.SlackBuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/pbr/pbr.SlackBuild b/python/pbr/pbr.SlackBuild
index 3dd6193357bc8..ec7edd948c89d 100644
--- a/python/pbr/pbr.SlackBuild
+++ b/python/pbr/pbr.SlackBuild
@@ -71,6 +71,11 @@ find -L . \
python setup.py install --root=$PKG
+# Python 3 support.
+if $(python3 -c 'import sys' 2>/dev/null); 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