python/pymysql: Updated for version 0.6.6.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Larry Hajali 2015-09-17 22:37:08 +07:00 committed by Willy Sudiarto Raharjo
parent 68fbd7b415
commit b14979cbd6
3 changed files with 17 additions and 7 deletions

View File

@ -1,3 +1,9 @@
This package contains a pure-Python MySQL client library. The goal of PyMySQL is
to be a drop-in replacement for MySQLdb and work on CPython, PyPy, IronPython
and Jython.
Optional dependency: python3
To install python3 bindings run slackbuild with option PYTHON3=yes.
# PYTHON3=yes ./pymysql.SlackBuild

View File

@ -2,7 +2,7 @@
# Slackware build script for pymysql
# Copyright 2014 Larry Hajali <larryhaja[at]gmail[dot]com>
# Copyright 2014-2015 Larry Hajali <larryhaja[at]gmail[dot]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=pymysql
VERSION=${VERSION:-0.6.2}
VERSION=${VERSION:-0.6.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -46,20 +46,24 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf PyMySQL-$PRGNAM-$VERSION
tar xvf $CWD/PyMySQL-$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
tar xvf $CWD/PyMySQL-$PRGNAM-$VERSION.tar.gz 2>/dev/null || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd PyMySQL-$PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Don't install tests.
rm -rf $PRGNAM/tests
python setup.py install --root=$PKG
if [ "${PYTHON3:-no}" == "yes" ]; then
python3 setup.py install --root=$PKG
fi
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

View File

@ -1,8 +1,8 @@
PRGNAM="pymysql"
VERSION="0.6.2"
VERSION="0.6.6"
HOMEPAGE="https://github.com/PyMySQL/PyMySQL"
DOWNLOAD="https://github.com/PyMySQL/PyMySQL/archive/pymysql-0.6.2.tar.gz"
MD5SUM="d16b0b4b1fe5a5c397525da4bc8a3e46"
DOWNLOAD="https://github.com/PyMySQL/PyMySQL/archive/pymysql-0.6.6.tar.gz"
MD5SUM="7cf52ba692d0929d2e98defb0cf3b506"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="pysetuptools"