diff options
author | fourtysixandtwo <fourtysixandtwo@sliderr.net> | 2024-03-31 11:33:41 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-04-05 15:18:10 +0700 |
commit | 3637938c8fe00282a51ef93996c59cc5dc8669c7 (patch) | |
tree | 6e25cbb4dac06d23d19606a165231c4f0bc50193 /office | |
parent | cadae600e7acfc9d37fa3fa74711b24a461d5d7c (diff) |
office/python3-xlsx2csv: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r-- | office/python3-xlsx2csv/python3-xlsx2csv.SlackBuild | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/office/python3-xlsx2csv/python3-xlsx2csv.SlackBuild b/office/python3-xlsx2csv/python3-xlsx2csv.SlackBuild index 4e82113b9d618..2fcf029600af2 100644 --- a/office/python3-xlsx2csv/python3-xlsx2csv.SlackBuild +++ b/office/python3-xlsx2csv/python3-xlsx2csv.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python3-xlsx2csv -# Copyright 2023 fourtysixandtwo <fourtysixandtwo@sliderr.net> +# Copyright 2023-2024 fourtysixandtwo <fourtysixandtwo@sliderr.net> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -64,7 +64,8 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ # use newer setuptools -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 --no-isolation python3 -m installer -d "$PKG" dist/*.whl @@ -76,7 +77,7 @@ cp -a man/$SRCNAM.1 $PKG/usr/man/man1 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 -find $PKG/usr/man -type f -exec gzip -9 {} \; +find $PKG/usr/man -type f -exec gzip -9 {} \+ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |