diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2019-10-26 18:01:07 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-10-27 00:36:10 +0700 |
commit | 8adad3a8a6f5271070ae746a707e3825af82193a (patch) | |
tree | 16125309c61d4134acf5b2d7d2c0deeea58a8c6b /python/typing | |
parent | 51c747719fae0e7093d638dc0a98c6a7dd50dd63 (diff) |
python/typing: Added python3 support.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'python/typing')
-rw-r--r-- | python/typing/README | 2 | ||||
-rw-r--r-- | python/typing/typing.SlackBuild | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/python/typing/README b/python/typing/README index 21502e4a6fb4..5828c6eff421 100644 --- a/python/typing/README +++ b/python/typing/README @@ -1,2 +1,4 @@ This is a backport of the standard library typing module to Python versions older than 3.5. + +Optional dependency: python3 diff --git a/python/typing/typing.SlackBuild b/python/typing/typing.SlackBuild index dd20ef0bf66c..49de6695b958 100644 --- a/python/typing/typing.SlackBuild +++ b/python/typing/typing.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=typing VERSION=${VERSION:-3.7.4.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -71,6 +71,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 |