From abb7ef7b412229767a3f20b5556c832a004a5eba Mon Sep 17 00:00:00 2001 From: Brenton Earl Date: Sat, 14 Jan 2017 06:01:44 +0700 Subject: python/passlib: Add python3 support. Signed-off-by: Willy Sudiarto Raharjo --- python/passlib/passlib.SlackBuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'python/passlib') diff --git a/python/passlib/passlib.SlackBuild b/python/passlib/passlib.SlackBuild index 635a64f4bc..54b24ce5a7 100644 --- a/python/passlib/passlib.SlackBuild +++ b/python/passlib/passlib.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for passlib -# Copyright 2015-2016 Brenton Earl +# Copyright 2015-2017 Brenton Earl # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -71,6 +71,11 @@ find -L . \ python setup.py install --root=$PKG +# Python 3 support +if $(python3 -c 'import sys' 2>/dev/null); 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 -- cgit v1.2.3