From e75fbd90b54159864bdb938f927e81117e6eb2c3 Mon Sep 17 00:00:00 2001 From: fourtysixandtwo Date: Sun, 31 Mar 2024 14:35:31 -0600 Subject: system/fwupd: Fix PYTHONPATH. Signed-off-by: Willy Sudiarto Raharjo --- system/fwupd/fwupd.SlackBuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/fwupd/fwupd.SlackBuild b/system/fwupd/fwupd.SlackBuild index b0985d4fa5c6..7d8312a4db1f 100644 --- a/system/fwupd/fwupd.SlackBuild +++ b/system/fwupd/fwupd.SlackBuild @@ -81,7 +81,8 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # to use updated meson -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/ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -- cgit v1.2.3