summaryrefslogtreecommitdiff
path: root/python/asn1crypto
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2018-09-12 22:30:05 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-11-17 18:33:08 +0700
commit9a48c98d69cd43e4ae3092d65db8f8eefe4bb229 (patch)
tree20d05405c28ddfb131dd2c0ee6f054afc4a1ac9b /python/asn1crypto
parent75e1b2e63ebb1ea592f9647a788b634a338ff39f (diff)
downloadslackbuilds-9a48c98d69cd43e4ae3092d65db8f8eefe4bb229.tar.gz
python/asn1crypto: Add support for python3.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/asn1crypto')
-rw-r--r--python/asn1crypto/asn1crypto.SlackBuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/asn1crypto/asn1crypto.SlackBuild b/python/asn1crypto/asn1crypto.SlackBuild
index 577f6a0a5e..974c7b83ea 100644
--- a/python/asn1crypto/asn1crypto.SlackBuild
+++ b/python/asn1crypto/asn1crypto.SlackBuild
@@ -72,6 +72,11 @@ find -L . \
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
+
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