aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-06-24 21:57:27 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-06-24 21:57:27 +0700
commitb3d8248a4373a577e62fa9cef001810eddeba280 (patch)
treee7d93d72c7cf7e439df16b12dfd4fe49fa30f4a7
parentce4b0389f90b26cd0ef473f937269ffd0179ab21 (diff)
python-template.SlackBuild: Explicitly state which python.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python-template.SlackBuild10
1 files 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 \