python/cryptography: Add python3 support.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2018-09-12 22:19:29 -04:00 committed by Willy Sudiarto Raharjo
parent 8bf496d581
commit 75e1b2e63e
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
1 changed files with 5 additions and 0 deletions

View File

@ -73,6 +73,11 @@ find -L . \
python setup.py install --root=$PKG
# Python 3 support.
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