summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author fourtysixandtwo2024-03-31 19:33:41 +0200
committer Willy Sudiarto Raharjo2024-04-05 10:18:10 +0200
commitd235886259695071445d403d0b78f01bed9052b6 (patch)
tree1203b1c816b24f71ad887d9b27e9a04871c18496
parent0b37ea1604b0aef00a6db3be6b6bc35907d05ec0 (diff)
downloadslackbuilds-d235886259695071445d403d0b78f01bed9052b6.tar.gz
graphics/mcomix: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--graphics/mcomix/mcomix.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/mcomix/mcomix.SlackBuild b/graphics/mcomix/mcomix.SlackBuild
index 2795c1b22c..8fb34f22ef 100644
--- a/graphics/mcomix/mcomix.SlackBuild
+++ b/graphics/mcomix/mcomix.SlackBuild
@@ -64,7 +64,8 @@ chown -R root:root .
find . -type f -a -exec chmod 644 {} + -o \
-type d -a -exec chmod 755 {} +
-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 -m build --wheel --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl