diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2018-10-08 18:50:30 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-10-13 08:03:06 +0700 |
commit | d4eb21562f5d16d52a513be43cad767c4c69e845 (patch) | |
tree | 7cf0735259e3dda5a52264355a140102793ded92 /python/atomicwrites | |
parent | 6726d3c7e8ac2fed328ca1b636146050f1df77c8 (diff) |
python/atomicwrites: Added support python3.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'python/atomicwrites')
-rw-r--r-- | python/atomicwrites/README | 2 | ||||
-rw-r--r-- | python/atomicwrites/atomicwrites.SlackBuild | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/python/atomicwrites/README b/python/atomicwrites/README index 2602e9896f6d6..be2c03c913821 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 d582ebd8d3dfc..90552196988c9 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 |