summaryrefslogtreecommitdiff
path: root/python/python-dateutil
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja@gmail.com>2017-03-13 11:20:12 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-03-18 06:59:22 +0700
commitb54d6f75e675eb3de9ca9247bee1ec3364805fd1 (patch)
tree02f34547ed496b3e1e95c8694734f61d5838685d /python/python-dateutil
parent8674dabb940f6de4901008a27af0d99ff84e76ac (diff)
downloadslackbuilds-b54d6f75e675eb3de9ca9247bee1ec3364805fd1.tar.gz
python/python-dateutil: add python3 as an optional dependency
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
Diffstat (limited to 'python/python-dateutil')
-rw-r--r--python/python-dateutil/README5
-rw-r--r--python/python-dateutil/python-dateutil.SlackBuild5
2 files changed, 10 insertions, 0 deletions
diff --git a/python/python-dateutil/README b/python/python-dateutil/README
index 5f9b6697e0..c3c1c52e58 100644
--- a/python/python-dateutil/README
+++ b/python/python-dateutil/README
@@ -1,2 +1,7 @@
The dateutil module provides powerful extensions to the
standard datetime module.
+
+Note: To install python3 bindings install six with python3
+bindings and pass PYTHON3=yes to the slackbuild.
+
+ # PYTHON3=yes ./python-dateutil.SlackBuild
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