summaryrefslogtreecommitdiff
path: root/python/python-dateutil/python-dateutil.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/python-dateutil/python-dateutil.SlackBuild')
-rw-r--r--python/python-dateutil/python-dateutil.SlackBuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/python-dateutil/python-dateutil.SlackBuild b/python/python-dateutil/python-dateutil.SlackBuild
index 34a9ed81d2..594c674cee 100644
--- a/python/python-dateutil/python-dateutil.SlackBuild
+++ b/python/python-dateutil/python-dateutil.SlackBuild
@@ -64,6 +64,11 @@ done
python setup.py install --root=$PKG
+# Install python3 bindings. Default is no.
+if [ "${PYTHON3:-no}" == "yes" ]; 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