diff options
author | Larry Hajali <larryhaja@gmail.com> | 2017-03-13 11:20:12 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-03-18 06:59:22 +0700 |
commit | b54d6f75e675eb3de9ca9247bee1ec3364805fd1 (patch) | |
tree | 02f34547ed496b3e1e95c8694734f61d5838685d | |
parent | 8674dabb940f6de4901008a27af0d99ff84e76ac (diff) |
python/python-dateutil: add python3 as an optional dependency
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
-rw-r--r-- | python/python-dateutil/README | 5 | ||||
-rw-r--r-- | python/python-dateutil/python-dateutil.SlackBuild | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/python/python-dateutil/README b/python/python-dateutil/README index 5f9b6697e004..c3c1c52e5805 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 34a9ed81d2d2..594c674cee4a 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 |