diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2023-12-03 20:53:52 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-12-09 07:50:07 +0700 |
commit | 0d39e4095154365fbbe5fae95cdc69771f28f14b (patch) | |
tree | 65e3bedb83c18521811c686a27355d1b49707958 | |
parent | 803977f4a705031c38ddafab88b23d7f5c5552ac (diff) |
development/python3-hyrule: Avoid hard-coded python version.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | development/python3-hyrule/python3-hyrule.SlackBuild | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/development/python3-hyrule/python3-hyrule.SlackBuild b/development/python3-hyrule/python3-hyrule.SlackBuild index 8fb6cb0c6f3ea..f48b7a13fbc6e 100644 --- a/development/python3-hyrule/python3-hyrule.SlackBuild +++ b/development/python3-hyrule/python3-hyrule.SlackBuild @@ -87,18 +87,20 @@ find -L . \ python3 setup.py install --root=$PKG -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hyrule/__pycache__/sequences.cpython-39.pyc -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hyrule/__pycache__/misc.cpython-39.pyc -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hyrule/__pycache__/macrotools.cpython-39.pyc -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hyrule/__pycache__/iterables.cpython-39.pyc -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hyrule/__pycache__/hypprint.cpython-39.pyc -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hyrule/__pycache__/hy_init.cpython-39.pyc -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hyrule/__pycache__/destructure.cpython-39.pyc -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hyrule/__pycache__/control.cpython-39.pyc -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hyrule/__pycache__/collections.cpython-39.pyc -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hyrule/__pycache__/argmove.cpython-39.pyc -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hyrule/__pycache__/anaphoric.cpython-39.pyc - +PYTHONVER=$(python3 -c 'import sys; print(f"{sys.version_info[0]}.{sys.version_info[1]}")') +PYTHONVER_SHORT=${PYTHONVER//[.]/} + +rm $PKG/usr/lib${LIBDIRSUFFIX}/python$PYTHONVER/site-packages/hyrule/__pycache__/sequences.cpython-$PYTHONVER_SHORT.pyc +rm $PKG/usr/lib${LIBDIRSUFFIX}/python$PYTHONVER/site-packages/hyrule/__pycache__/misc.cpython-$PYTHONVER_SHORT.pyc +rm $PKG/usr/lib${LIBDIRSUFFIX}/python$PYTHONVER/site-packages/hyrule/__pycache__/macrotools.cpython-$PYTHONVER_SHORT.pyc +rm $PKG/usr/lib${LIBDIRSUFFIX}/python$PYTHONVER/site-packages/hyrule/__pycache__/iterables.cpython-$PYTHONVER_SHORT.pyc +rm $PKG/usr/lib${LIBDIRSUFFIX}/python$PYTHONVER/site-packages/hyrule/__pycache__/hypprint.cpython-$PYTHONVER_SHORT.pyc +rm $PKG/usr/lib${LIBDIRSUFFIX}/python$PYTHONVER/site-packages/hyrule/__pycache__/hy_init.cpython-$PYTHONVER_SHORT.pyc +rm $PKG/usr/lib${LIBDIRSUFFIX}/python$PYTHONVER/site-packages/hyrule/__pycache__/destructure.cpython-$PYTHONVER_SHORT.pyc +rm $PKG/usr/lib${LIBDIRSUFFIX}/python$PYTHONVER/site-packages/hyrule/__pycache__/control.cpython-$PYTHONVER_SHORT.pyc +rm $PKG/usr/lib${LIBDIRSUFFIX}/python$PYTHONVER/site-packages/hyrule/__pycache__/collections.cpython-$PYTHONVER_SHORT.pyc +rm $PKG/usr/lib${LIBDIRSUFFIX}/python$PYTHONVER/site-packages/hyrule/__pycache__/argmove.cpython-$PYTHONVER_SHORT.pyc +rm $PKG/usr/lib${LIBDIRSUFFIX}/python$PYTHONVER/site-packages/hyrule/__pycache__/anaphoric.cpython-$PYTHONVER_SHORT.pyc mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ |