aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2021-05-21 21:32:10 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-06-02 01:02:23 +0700
commita441795736c91c8ef40e7898394f921d9246e51d (patch)
treeebe8c58e187306cd8a7786bd4119ed32efa59b1f
parentd28e074fb56cd9aaa3d4f40d9b7bd87622a13f44 (diff)
python/aniso8601: Convert python to python2.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/aniso8601/aniso8601.SlackBuild8
-rw-r--r--python/aniso8601/aniso8601.info2
2 files changed, 3 insertions, 7 deletions
diff --git a/python/aniso8601/aniso8601.SlackBuild b/python/aniso8601/aniso8601.SlackBuild
index 8e038e5823064..2ac090600fa44 100644
--- a/python/aniso8601/aniso8601.SlackBuild
+++ b/python/aniso8601/aniso8601.SlackBuild
@@ -69,12 +69,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-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
+python2 setup.py install --root=$PKG
+python3 setup.py install --root=$PKG
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
diff --git a/python/aniso8601/aniso8601.info b/python/aniso8601/aniso8601.info
index 1dd7d90fe5f0f..322a259af6068 100644
--- a/python/aniso8601/aniso8601.info
+++ b/python/aniso8601/aniso8601.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://pypi.python.org/packages/07/2e/63316d28874c0207de3dbb85cca21a1
MD5SUM="d3c987293e4b5acf2004edf48cd19e9f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python-dateutil"
+REQUIRES="python2-dateutil"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"