Upgraded python module psutil from 5.9.0 to 5.9.5

This commit is contained in:
dslm4515
2023-05-02 09:28:56 -05:00
parent d38a39425d
commit e88c2ba687

View File

@ -1,7 +1,7 @@
#! /bin/bash
# pypsutil
# Source: https://files.pythonhosted.org/packages/source/p/psutil/psutil-5.9.0.tar.gz
# Source: https://files.pythonhosted.org/packages/source/p/psutil/psutil-5.9.5.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
@ -11,9 +11,13 @@
# Recommended: NONE
# Optional: NONE
read -p "Compile?" && python3 setup.py build && \
#read -p "Compile?" && python3 setup.py build && \
sudo -S python3 setup.py install --skip-build --root=$BUILD --optimize=1 &&
#sudo -S python3 setup.py install --skip-build --root=$BUILD --optimize=1 &&
read -p "Compile module?" && pip3 wheel -w dist --no-build-isolation --no-deps $PWD
sudo -E pip3 install --no-index --find-links dist --no-cache-dir --no-user psutil --root=$BUILD
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
cat > /tmp/slack-desc << "EOF"
@ -33,5 +37,5 @@ pypsutil: https://github.com/giampaolo/psutil
pypsutil:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/pypsutil-5.9.0-$(uname -m)-mlfs.txz &&
sudo -S makepkg -l y -c n $PKGS/pypsutil-5.9.5-$PSUFFIX &&
sudo -S rm -rf ${BUILD}/*