From a4bb049eac3777e82b1d18a787b7184cc3624965 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sun, 20 Apr 2025 23:07:40 +0200 Subject: [PATCH] Fix pip package build script --- setup/make_pip.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/setup/make_pip.sh b/setup/make_pip.sh index eaf03d52..25da2237 100755 --- a/setup/make_pip.sh +++ b/setup/make_pip.sh @@ -9,7 +9,7 @@ if [ ! -f pkgutils.py ]; then fi echo "" -echo " Building Dependencies" +echo " Create Python Env" echo "================================================================================" echo "" @@ -17,9 +17,13 @@ if [ ! -d $ENVPATH ]; then python3 -m venv $ENVPATH fi source $ENVPATH/bin/activate -pip3 install -r requirements.txt -r docs/requirements.txt +pip3 install -U build twine -r requirements.txt -r docs/requirements.txt + +echo "" +echo " Building Dependencies" +echo "================================================================================" +echo "" python3 pkgutils.py build-assets -deactivate echo "" echo " Building Packages" @@ -27,7 +31,7 @@ echo "========================================================================== echo "" python3 -m build mkdir -pv dist_upload -cp -v dist/novelWriter-*.whl dist_upload/ +cp -v dist/novelwriter-*.whl dist_upload/ cd dist_upload FILE=$(ls -t | head -1) shasum -a 256 $FILE | tee $FILE.sha256 @@ -38,6 +42,7 @@ echo " Checking Packages" echo "================================================================================" echo "" twine check dist/* +deactivate echo "" echo " Done!"