python/sqlalchemy-migrate: Always build for python3

Signed-off-by: Kyle Guinn <elyk03@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Kyle Guinn 2021-09-04 02:41:13 -05:00 committed by Willy Sudiarto Raharjo
parent 478018374d
commit 633628091c
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -2,7 +2,7 @@
# Slackware build script for SQLAlchemy-migrate
# Copyright 2014-2020 Kyle Guinn <elyk03@gmail.com>
# Copyright 2014-2021 Kyle Guinn <elyk03@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=sqlalchemy-migrate
VERSION=${VERSION:-0.13.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -63,12 +63,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go-w,a+rX-st .
# Prefer python2 executables in /usr/bin for now by installing them last.
if python3 -c 'import sys' 2>/dev/null; then
python3 ./setup.py install --root=$PKG
rm -rf build
fi
python2 setup.py install --root=$PKG
rm -rf build
python3 setup.py install --root=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION