summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2021-09-04 02:41:13 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-09-06 08:50:28 +0700
commit633628091c734658f815d451cf8694aa1b8b0e0d (patch)
tree47ab508009de5bf9474001abbcddb317e94a051c /python
parent478018374d9dc15f2fdcbdfff9e93bbccb61c2fa (diff)
downloadslackbuilds-633628091c734658f815d451cf8694aa1b8b0e0d.tar.gz
python/sqlalchemy-migrate: Always build for python3
Signed-off-by: Kyle Guinn <elyk03@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r--python/sqlalchemy-migrate/sqlalchemy-migrate.SlackBuild11
1 files changed, 4 insertions, 7 deletions
diff --git a/python/sqlalchemy-migrate/sqlalchemy-migrate.SlackBuild b/python/sqlalchemy-migrate/sqlalchemy-migrate.SlackBuild
index 42fb5b0b5a..ceb1070628 100644
--- a/python/sqlalchemy-migrate/sqlalchemy-migrate.SlackBuild
+++ b/python/sqlalchemy-migrate/sqlalchemy-migrate.SlackBuild
@@ -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