From 8bf496d58172e1c46b1e7ad66fef2c0098fad23d Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Wed, 12 Sep 2018 22:01:11 -0400 Subject: python/pyOpenSSL: Add support for python3. Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- python/pyOpenSSL/pyOpenSSL.SlackBuild | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python') diff --git a/python/pyOpenSSL/pyOpenSSL.SlackBuild b/python/pyOpenSSL/pyOpenSSL.SlackBuild index 0e041f8b07..06196274ae 100644 --- a/python/pyOpenSSL/pyOpenSSL.SlackBuild +++ b/python/pyOpenSSL/pyOpenSSL.SlackBuild @@ -76,6 +76,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