diff --git a/aarch64_buildscript b/aarch64_buildscript index b8888afe..345fba2a 100755 --- a/aarch64_buildscript +++ b/aarch64_buildscript @@ -23,13 +23,13 @@ cd swingmusicbuilder git clone --quiet https://github.com/swing-opensource/swingmusic-client.git git clone --quiet https://github.com/swing-opensource/swingmusic.git # Manual poetry installation as installers are broken. -python3.11 -m venv poetry -source poetry/bin/activate +python3.11 -m venv venv +source venv/bin/activate cd swingmusic -pip install -U pip setuptools -pip install poetry +# pip install -U pip setuptools +pip install -r requirements.txt cd ../swingmusic-client yarn install @@ -37,12 +37,12 @@ yarn build --outDir ../swingmusic/client cd ../swingmusic # Fixes poetry issue 5250. -export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring -poetry env use /usr/bin/python3.11 -poetry install +# export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring +# poetry env use /usr/bin/python3.11 +# poetry install # Swing gives error if this is not set. Set to version of repo you cloned. export SWINGMUSIC_APP_VERSION="TAG" -poetry run python manage.py --build +python manage.py --build # rename binary mv dist/swingmusic dist/swingmusic_linux_arm64 diff --git a/manage.py b/manage.py index 857ad49a..abfe6a74 100644 --- a/manage.py +++ b/manage.py @@ -2,6 +2,7 @@ This file is used to run the application. """ +import logging import os import psutil import waitress @@ -54,6 +55,9 @@ mimetypes.add_type("application/manifest+json", ".webmanifest") # werkzeug = logging.getLogger("werkzeug") # werkzeug.setLevel(logging.ERROR) +waitress_logger = logging.getLogger("waitress") +waitress_logger.setLevel(logging.ERROR) + # # logging.basicConfig() # logging.getLogger("sqlalchemy.engine").setLevel(logging.ERROR)