python/lockfile: Updated for Python 3.

Signed-off-by: Willy Sudiarto Raharjo <willysr@gmail.com>
This commit is contained in:
klaatu 2019-11-22 19:29:49 +13:00 committed by Willy Sudiarto Raharjo
parent 89d247a870
commit f891a5e3fb
2 changed files with 7 additions and 1 deletions

View file

@ -6,3 +6,8 @@ functions, and the deprecated posixfile module, the API is identical
across both Unix (including Linux and Mac) and Windows platforms.
This package is version 0.8 due to some API breakage in 0.9+
To build for Python 3:
# PYTHON=python3 ./lockfile.SlackBuild

View file

@ -14,6 +14,7 @@ PRGNAM=lockfile
VERSION=${VERSION:-0.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
TAG=${PYTHON:-python}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@ -57,7 +58,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
python setup.py install --root=$PKG
$PYTHON setup.py install --root=$PKG
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