summaryrefslogtreecommitdiff
path: root/development/zope.interface
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-18 07:42:06 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-18 07:42:06 +0700
commitcdaee615fe8b0f0f2092bd109b82149efc960865 (patch)
tree1e32442813695211841f4f9de0caf0d8fe28442c /development/zope.interface
parentb604b899eac64c1eca513cf29fb1d8c45ac58ddd (diff)
downloadslackbuilds-cdaee615fe8b0f0f2092bd109b82149efc960865.tar.gz
development/zope.interface: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/zope.interface')
-rw-r--r--development/zope.interface/zope.interface.SlackBuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/development/zope.interface/zope.interface.SlackBuild b/development/zope.interface/zope.interface.SlackBuild
index fcd0e1c64a..66025eadbe 100644
--- a/development/zope.interface/zope.interface.SlackBuild
+++ b/development/zope.interface/zope.interface.SlackBuild
@@ -57,6 +57,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