From ea631b6f20fddc60c91fe7e25267df1f9b6fe0df Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Fri, 16 Mar 2018 23:38:44 -0700 Subject: gis/python-mapnik: Add Python 3 support. Signed-off-by: Benjamin Trigona-Harany --- gis/python-mapnik/python-mapnik.SlackBuild | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gis') diff --git a/gis/python-mapnik/python-mapnik.SlackBuild b/gis/python-mapnik/python-mapnik.SlackBuild index e5415af114..5a54a13d52 100644 --- a/gis/python-mapnik/python-mapnik.SlackBuild +++ b/gis/python-mapnik/python-mapnik.SlackBuild @@ -69,6 +69,9 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; python setup.py install --root=$PKG +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