summaryrefslogtreecommitdiff
path: root/python/python-certifi
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-17 01:04:10 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-22 06:55:33 +0700
commitbf380390b11087510333bbe3655b9453f0d84881 (patch)
tree566b9e15c7c697700920740936d97ee49603e202 /python/python-certifi
parent9cea044e3485af4af4794808af97d7c6fde3c9a4 (diff)
downloadslackbuilds-bf380390b11087510333bbe3655b9453f0d84881.tar.gz
python/python-certifi: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python-certifi')
-rw-r--r--python/python-certifi/python-certifi.SlackBuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/python-certifi/python-certifi.SlackBuild b/python/python-certifi/python-certifi.SlackBuild
index 6395e1ca21..01fc9b6f80 100644
--- a/python/python-certifi/python-certifi.SlackBuild
+++ b/python/python-certifi/python-certifi.SlackBuild
@@ -72,6 +72,10 @@ find -L . \
python setup.py install --root=$PKG
+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