summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-18 10:59:56 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-18 10:59:56 +0700
commit847e3647160542d30fc4673a68f98a424a62d391 (patch)
tree7027d3560e0eed2b7b93433e179e48eb11109ce5 /libraries
parent64a66a05f64162f1b34ed88f25fe43b928550802 (diff)
downloadslackbuilds-847e3647160542d30fc4673a68f98a424a62d391.tar.gz
libraries/zope.event: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/zope.event/zope.event.SlackBuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/libraries/zope.event/zope.event.SlackBuild b/libraries/zope.event/zope.event.SlackBuild
index 293ada9413..a3b08363ba 100644
--- a/libraries/zope.event/zope.event.SlackBuild
+++ b/libraries/zope.event/zope.event.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
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild