mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
office/python3-xlsx2csv: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
cadae600e7
commit
3637938c8f
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue