mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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:
parent
478018374d
commit
633628091c
1 changed files with 4 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue