Skip to content

Commit 0215610

Browse files
committed
update arm64 buildscript to avoid poetry
1 parent 5adde56 commit 0215610

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

aarch64_buildscript

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,26 @@ cd swingmusicbuilder
2323
git clone --quiet https://github.com/swing-opensource/swingmusic-client.git
2424
git clone --quiet https://github.com/swing-opensource/swingmusic.git
2525
# Manual poetry installation as installers are broken.
26-
python3.11 -m venv poetry
27-
source poetry/bin/activate
26+
python3.11 -m venv venv
27+
source venv/bin/activate
2828

2929
cd swingmusic
3030

31-
pip install -U pip setuptools
32-
pip install poetry
31+
# pip install -U pip setuptools
32+
pip install -r requirements.txt
3333

3434
cd ../swingmusic-client
3535
yarn install
3636
yarn build --outDir ../swingmusic/client
3737

3838
cd ../swingmusic
3939
# Fixes poetry issue 5250.
40-
export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring
41-
poetry env use /usr/bin/python3.11
42-
poetry install
40+
# export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring
41+
# poetry env use /usr/bin/python3.11
42+
# poetry install
4343
# Swing gives error if this is not set. Set to version of repo you cloned.
4444
export SWINGMUSIC_APP_VERSION="TAG"
45-
poetry run python manage.py --build
45+
python manage.py --build
4646

4747
# rename binary
4848
mv dist/swingmusic dist/swingmusic_linux_arm64

manage.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This file is used to run the application.
33
"""
44

5+
import logging
56
import os
67
import psutil
78
import waitress
@@ -54,6 +55,9 @@
5455
# werkzeug = logging.getLogger("werkzeug")
5556
# werkzeug.setLevel(logging.ERROR)
5657

58+
waitress_logger = logging.getLogger("waitress")
59+
waitress_logger.setLevel(logging.ERROR)
60+
5761
# # logging.basicConfig()
5862
# logging.getLogger("sqlalchemy.engine").setLevel(logging.ERROR)
5963

0 commit comments

Comments
 (0)