From b3d8248a4373a577e62fa9cef001810eddeba280 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Thu, 24 Jun 2021 21:57:27 +0700 Subject: python-template.SlackBuild: Explicitly state which python. Signed-off-by: Willy Sudiarto Raharjo --- python-template.SlackBuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python-template.SlackBuild b/python-template.SlackBuild index 1381382..2f76eba 100644 --- a/python-template.SlackBuild +++ b/python-template.SlackBuild @@ -98,12 +98,12 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Your application may need different options; this is only an example -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 +# For python2 +python2 setup.py install --root=$PKG + +# For python3 +python3 setup.py install --root=$PKG # Strip binaries and libraries. find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ -- cgit v1.2.3