From 74cd25c95feba570a2aa003c336f1b95a475ee03 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 16 May 2016 04:26:22 +0300 Subject: python/argcomplete: Add python3 support. Signed-off-by: Dimitris Zlatanidis --- python/argcomplete/argcomplete.SlackBuild | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python') diff --git a/python/argcomplete/argcomplete.SlackBuild b/python/argcomplete/argcomplete.SlackBuild index 2c5c087752..040001b673 100644 --- a/python/argcomplete/argcomplete.SlackBuild +++ b/python/argcomplete/argcomplete.SlackBuild @@ -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