summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-05-04 03:51:57 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-05-04 03:51:57 +0700
commitc2b8b6b83ca6319ae87244c74691a4abbb43d49f (patch)
treeed0cd0dd7363a452b1ea42330734a1f67beb14b5 /python
parent09601eb377761dc6eb5fae20bdefb349b0ae59b1 (diff)
downloadslackbuilds-c2b8b6b83ca6319ae87244c74691a4abbb43d49f.tar.gz
python/sphinxcontrib-plantuml: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r--python/sphinxcontrib-plantuml/sphinxcontrib-plantuml.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/sphinxcontrib-plantuml/sphinxcontrib-plantuml.SlackBuild b/python/sphinxcontrib-plantuml/sphinxcontrib-plantuml.SlackBuild
index 6c9aab6b2b..5c10a26eca 100644
--- a/python/sphinxcontrib-plantuml/sphinxcontrib-plantuml.SlackBuild
+++ b/python/sphinxcontrib-plantuml/sphinxcontrib-plantuml.SlackBuild
@@ -70,6 +70,9 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python setup.py install --root=$PKG
+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