summaryrefslogtreecommitdiff
path: root/python/cairocffi
diff options
context:
space:
mode:
Diffstat (limited to 'python/cairocffi')
-rw-r--r--python/cairocffi/README2
-rw-r--r--python/cairocffi/cairocffi.SlackBuild5
2 files changed, 6 insertions, 1 deletions
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