python/python-dateutil: add python3 as an optional dependency

Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
This commit is contained in:
Larry Hajali 2017-03-13 11:20:12 -07:00 committed by Willy Sudiarto Raharjo
parent 8674dabb94
commit b54d6f75e6
2 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -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