diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-01-18 07:44:20 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-01-18 07:44:20 +0700 |
commit | 1decfa691ae89bc47e8f2705f8d67d8db8b33fbf (patch) | |
tree | f763663da884a4e5db0d13b5cb9d2f079004be0a /libraries | |
parent | cdaee615fe8b0f0f2092bd109b82149efc960865 (diff) |
libraries/zope.component: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/zope.component/zope.component.SlackBuild | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libraries/zope.component/zope.component.SlackBuild b/libraries/zope.component/zope.component.SlackBuild index 54e0e0d44f76f..d432dbdd4a347 100644 --- a/libraries/zope.component/zope.component.SlackBuild +++ b/libraries/zope.component/zope.component.SlackBuild @@ -29,7 +29,7 @@ TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -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 |