From 7138036afd4f1d74f9da4905e605957ac9d15ce9 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Sat, 7 May 2016 23:33:34 +0700 Subject: python/pyxdg: Add python3 support. Signed-off-by: Willy Sudiarto Raharjo --- python/pyxdg/README | 4 ++++ python/pyxdg/pyxdg.SlackBuild | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/python/pyxdg/README b/python/pyxdg/README index 485a238ba1..6247c59ae0 100644 --- a/python/pyxdg/README +++ b/python/pyxdg/README @@ -1 +1,5 @@ PyXDG contains implementations of freedesktop.org standards in python. + +To install python3 bindings run the slackbuild with PYTHON3=yes. + + # PYTHON3=yes ./pyxdg.SlackBuild diff --git a/python/pyxdg/pyxdg.SlackBuild b/python/pyxdg/pyxdg.SlackBuild index a1e16ec70d..f54fe8a8fd 100644 --- a/python/pyxdg/pyxdg.SlackBuild +++ b/python/pyxdg/pyxdg.SlackBuild @@ -71,6 +71,11 @@ find -L . \ python setup.py install --root $PKG +# Install python3 bindings for pyxdg. Default is no. +if [ "${PYTHON3:-no}" == "yes" ]; then + python3 setup.py install --root=$PKG +fi + find $PKG | xargs 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