From ca5332e18d9fc01656159ec4042460fa54e9154d Mon Sep 17 00:00:00 2001 From: Dave Woodfall Date: Fri, 21 May 2021 21:32:18 +0100 Subject: python/py: Convert python to python2. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- python/py/README | 7 ++++--- python/py/py.SlackBuild | 8 ++------ 2 files changed, 6 insertions(+), 9 deletions(-) (limited to 'python') diff --git a/python/py/README b/python/py/README index 1667c95551..0a1986eacb 100644 --- a/python/py/README +++ b/python/py/README @@ -1,7 +1,8 @@ -The py lib is a Python development support library featuring the following tools and -modules: +The py lib is a Python development support library featuring the +following tools and modules: py.path: uniform local and svn path objects py.apipkg: explicit API control and lazy-importing py.iniconfig: easy parsing of .ini files -py.code: dynamic code generation and introspection (deprecated, moved to pytest). +py.code: dynamic code generation and introspection (deprecated, moved to +pytest). diff --git a/python/py/py.SlackBuild b/python/py/py.SlackBuild index 38cd006126..f00d31ff41 100644 --- a/python/py/py.SlackBuild +++ b/python/py/py.SlackBuild @@ -69,12 +69,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -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 +python2 setup.py install --root=$PKG +python3 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 -- cgit v1.2.3