diff options
-rw-r--r-- | development/python3-hylang/python3-hylang.SlackBuild | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/development/python3-hylang/python3-hylang.SlackBuild b/development/python3-hylang/python3-hylang.SlackBuild index 8afd062cad392..5f4c3bee32edb 100644 --- a/development/python3-hylang/python3-hylang.SlackBuild +++ b/development/python3-hylang/python3-hylang.SlackBuild @@ -88,12 +88,14 @@ find -L . \ python3 setup.py install --root=$PKG rm -rf $PKG/usr/get_version -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hy/core/__pycache__/util.cpython-39.pyc -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hy/core/__pycache__/macros.cpython-39.pyc -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hy/core/__pycache__/hy_repr.cpython-39.pyc -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hy/__pycache__/reserved.cpython-39.pyc -rm $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/hy/__pycache__/pyops.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/hy/core/__pycache__/util.cpython-$PYTHONVER_SHORT.pyc +rm $PKG/usr/lib${LIBDIRSUFFIX}/python$PYTHONVER/site-packages/hy/core/__pycache__/macros.cpython-$PYTHONVER_SHORT.pyc +rm $PKG/usr/lib${LIBDIRSUFFIX}/python$PYTHONVER/site-packages/hy/core/__pycache__/hy_repr.cpython-$PYTHONVER_SHORT.pyc +rm $PKG/usr/lib${LIBDIRSUFFIX}/python$PYTHONVER/site-packages/hy/__pycache__/reserved.cpython-$PYTHONVER_SHORT.pyc +rm $PKG/usr/lib${LIBDIRSUFFIX}/python$PYTHONVER/site-packages/hy/__pycache__/pyops.cpython-$PYTHONVER_SHORT.pyc 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 |