aboutsummaryrefslogtreecommitdiff
path: root/gis/Shapely/Shapely.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/Shapely/Shapely.SlackBuild')
-rw-r--r--gis/Shapely/Shapely.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/gis/Shapely/Shapely.SlackBuild b/gis/Shapely/Shapely.SlackBuild
index a7f2ecc45cc11..d9de959e2f3f5 100644
--- a/gis/Shapely/Shapely.SlackBuild
+++ b/gis/Shapely/Shapely.SlackBuild
@@ -73,6 +73,9 @@ find -L . \
sed -i "s/data_files\s*=.*/data_files = [],/g" setup.py
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