From 6a8f4d53c9c7c94d29130757a21909f2cd8d8b9b Mon Sep 17 00:00:00 2001 From: fourtysixandtwo Date: Sun, 31 Mar 2024 11:33:42 -0600 Subject: [PATCH] python/python-evdev: Fix PYTHONPATH. Signed-off-by: Willy Sudiarto Raharjo --- python/python-evdev/python-evdev.SlackBuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/python-evdev/python-evdev.SlackBuild b/python/python-evdev/python-evdev.SlackBuild index 8540ff6afe..f18028d337 100644 --- a/python/python-evdev/python-evdev.SlackBuild +++ b/python/python-evdev/python-evdev.SlackBuild @@ -69,7 +69,8 @@ find -L . \ # ... but upstream shipped evdev-1.0.0 with 660 permissions everywhere, so: find -L . -perm 660 -exec chmod 644 {} \; -export PYTHONPATH=/opt/python3.9/site-packages/ +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages/ python3 setup.py install --root=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \