From 2a31ca7470d58c95ab7d42c5c9453991d2b0714d Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 26 Nov 2016 11:34:20 +0200 Subject: python/cairocffi: Add python3 support. Signed-off-by: Dimitris Zlatanidis Signed-off-by: Willy Sudiarto Raharjo --- python/cairocffi/README | 2 +- python/cairocffi/cairocffi.SlackBuild | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'python/cairocffi') diff --git a/python/cairocffi/README b/python/cairocffi/README index 73c7201dd7..99dee9617d 100644 --- a/python/cairocffi/README +++ b/python/cairocffi/README @@ -4,4 +4,4 @@ Cairo is a 2D vector graphics library with support for multiple backends including image buffers, PNG, PostScript, PDF, and SVG file output. API compatible with Pycairo. -python-xcffib is an optional dependency. +python3 and python-xcffib is an optional dependency. diff --git a/python/cairocffi/cairocffi.SlackBuild b/python/cairocffi/cairocffi.SlackBuild index e3361f1bc7..5412c3cc2f 100644 --- a/python/cairocffi/cairocffi.SlackBuild +++ b/python/cairocffi/cairocffi.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