From c2b8b6b83ca6319ae87244c74691a4abbb43d49f Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Sat, 4 May 2019 03:51:57 +0700 Subject: python/sphinxcontrib-plantuml: Add python3 support. Signed-off-by: Willy Sudiarto Raharjo --- python/sphinxcontrib-plantuml/sphinxcontrib-plantuml.SlackBuild | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python/sphinxcontrib-plantuml/sphinxcontrib-plantuml.SlackBuild') 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 -- cgit v1.2.3