aboutsummaryrefslogtreecommitdiff
path: root/python/GeoIP-Python
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2021-05-21 21:32:06 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-06-02 01:02:21 +0700
commit47d6ee54eb4e0ffe1f66448fbe9948ec446214db (patch)
tree5e336933c931712a9654ff73bcc4ce7ca1fc6f6d /python/GeoIP-Python
parentab0cc4dd6217ccd7c3ead0a922a024797b16d29a (diff)
python/GeoIP-Python: Convert python to python2.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/GeoIP-Python')
-rw-r--r--python/GeoIP-Python/GeoIP-Python.SlackBuild7
1 files changed, 2 insertions, 5 deletions
diff --git a/python/GeoIP-Python/GeoIP-Python.SlackBuild b/python/GeoIP-Python/GeoIP-Python.SlackBuild
index 5ed58a8443d89..185b1384cb6b6 100644
--- a/python/GeoIP-Python/GeoIP-Python.SlackBuild
+++ b/python/GeoIP-Python/GeoIP-Python.SlackBuild
@@ -72,11 +72,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
-
-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