aboutsummaryrefslogtreecommitdiff
path: root/python/sqlalchemy-migrate/sqlalchemy-migrate.SlackBuild
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2019-03-09 22:05:19 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-03-16 06:53:34 +0700
commit1e6e7f81c28cce66fd2d5fe0fcc6db588c8c993a (patch)
treefe466401bd9273c80505b974009ef01fe78dd2ee /python/sqlalchemy-migrate/sqlalchemy-migrate.SlackBuild
parent7801b80f7215dda499fa24df4dba8032f409e6c0 (diff)
python/sqlalchemy-migrate: Updated for version 0.12.0.
Signed-off-by: Kyle Guinn <elyk03@gmail.com>
Diffstat (limited to 'python/sqlalchemy-migrate/sqlalchemy-migrate.SlackBuild')
-rw-r--r--python/sqlalchemy-migrate/sqlalchemy-migrate.SlackBuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/python/sqlalchemy-migrate/sqlalchemy-migrate.SlackBuild b/python/sqlalchemy-migrate/sqlalchemy-migrate.SlackBuild
index 9cd07cb286896..7225f33d0bbbc 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-2017 Kyle Guinn <elyk03@gmail.com>, USA
+# Copyright 2014-2019 Kyle Guinn <elyk03@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=sqlalchemy-migrate
-VERSION=${VERSION:-0.11.0}
+VERSION=${VERSION:-0.12.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -37,7 +37,7 @@ fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
+PKG=$TMP/package-$PRGNAM-$VERSION
OUTPUT=${OUTPUT:-/tmp}
DOCS="AUTHORS COPYING ChangeLog README.rst TODO"
@@ -53,7 +53,12 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go-w,a+rX-st .
-python setup.py install --root=$PKG
+# 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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION