From d4eb21562f5d16d52a513be43cad767c4c69e845 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 8 Oct 2018 18:50:30 +0200 Subject: python/atomicwrites: Added support python3. Signed-off-by: Dimitris Zlatanidis --- python/atomicwrites/README | 2 ++ python/atomicwrites/atomicwrites.SlackBuild | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/python/atomicwrites/README b/python/atomicwrites/README index 2602e9896f..be2c03c913 100644 --- a/python/atomicwrites/README +++ b/python/atomicwrites/README @@ -13,3 +13,5 @@ and the name of the target file. Also note that the permissions of the target file may change this way. In some situations a chmod can be issued without any concurrency problems, but since that is not always the case, this library doesn’t do it by itself. + +Optional dependency: python3 diff --git a/python/atomicwrites/atomicwrites.SlackBuild b/python/atomicwrites/atomicwrites.SlackBuild index d582ebd8d3..9055219698 100644 --- a/python/atomicwrites/atomicwrites.SlackBuild +++ b/python/atomicwrites/atomicwrites.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