aboutsummaryrefslogtreecommitdiff
path: root/python/python-evdev
diff options
context:
space:
mode:
authorfourtysixandtwo <fourtysixandtwo@sliderr.net>2024-03-31 11:33:42 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-04-05 15:18:11 +0700
commit6a8f4d53c9c7c94d29130757a21909f2cd8d8b9b (patch)
tree285a7811156111fdc06da87ab85a296218ed813b /python/python-evdev
parentfa4a4c70abbd880eae6bb617c582f79ffd2c6b5a (diff)
python/python-evdev: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python-evdev')
-rw-r--r--python/python-evdev/python-evdev.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/python-evdev/python-evdev.SlackBuild b/python/python-evdev/python-evdev.SlackBuild
index 8540ff6afefb7..f18028d337bd6 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 \