From 44bccccee19f53a474f11679d783aad56d7ff6dc Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 18 Sep 2020 17:20:39 +0300 Subject: [PATCH] python/s3transfer: Added python3 support. Signed-off-by: Dimitris Zlatanidis Signed-off-by: Willy Sudiarto Raharjo --- python/s3transfer/README | 4 ++++ python/s3transfer/s3transfer.SlackBuild | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/python/s3transfer/README b/python/s3transfer/README index b684f98472..ddb6c15db8 100644 --- a/python/s3transfer/README +++ b/python/s3transfer/README @@ -1 +1,5 @@ S3transfer is a Python library for managing Amazon S3 transfers. + +Note: Dependency futures it does not work on Python 3, +and Python 3 users do not need it as the concurrent.futures package +is available in the standard library. diff --git a/python/s3transfer/s3transfer.SlackBuild b/python/s3transfer/s3transfer.SlackBuild index cf0405fdc2..695d9dbfcf 100644 --- a/python/s3transfer/s3transfer.SlackBuild +++ b/python/s3transfer/s3transfer.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