aboutsummaryrefslogtreecommitdiff
path: root/development/python3-hyrule
diff options
context:
space:
mode:
Diffstat (limited to 'development/python3-hyrule')
-rw-r--r--development/python3-hyrule/python3-hyrule.SlackBuild26
1 files changed, 14 insertions, 12 deletions
diff --git a/development/python3-hyrule/python3-hyrule.SlackBuild b/development/python3-hyrule/python3-hyrule.SlackBuild
index 8fb6cb0c6f3e..f48b7a13fbc6 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 \