diff options
author | Dominik Drobek <dominik.drobek@o2.pl> | 2019-03-17 20:00:51 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-03-20 20:55:54 +0700 |
commit | 87ada4b9ca4404a24cf7a59400482b2b11728ae2 (patch) | |
tree | dacadca923152fb208672edb556c071e0db8361e /python/pyotp | |
parent | b73cbb74f680c3074e76fb09aeac9dba374651be (diff) | |
download | slackbuilds-87ada4b9ca4404a24cf7a59400482b2b11728ae2.tar.gz |
python/pyotp: enable Python3
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/pyotp')
-rw-r--r-- | python/pyotp/pyotp.SlackBuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/python/pyotp/pyotp.SlackBuild b/python/pyotp/pyotp.SlackBuild index d7779e30ad..30f13eee70 100644 --- a/python/pyotp/pyotp.SlackBuild +++ b/python/pyotp/pyotp.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for pyotp -# Copyright 2018 Dominik Drobek <dominik.drobek (at) o2.pl> +# Copyright 2018, 2019 Dominik Drobek <dominik.drobek (at) o2.pl> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=pyotp VERSION=${VERSION:-2.2.7} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -71,6 +71,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 + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a Changes.rst LICENSE README.rst $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |