fix(docker): Suppress error PEP-668

When using docker (compose), we don't create a venv and just install
python packages system-wide.

With python 3.11 (PEP 668) we need to explicitly tell pip to allow this.

Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
moson-mo 2023-06-15 14:16:38 +02:00
parent 58158505b0
commit 32461f28ea
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296

View file

@ -1,10 +1,8 @@
#!/bin/bash #!/bin/bash
set -eou pipefail set -eou pipefail
# Upgrade PIP; Arch Linux's version of pip is outdated for Poetry.
pip install --upgrade pip
if [ ! -z "${COMPOSE+x}" ]; then if [ ! -z "${COMPOSE+x}" ]; then
export PIP_BREAK_SYSTEM_PACKAGES=1
poetry config virtualenvs.create false poetry config virtualenvs.create false
fi fi
poetry install --no-interaction --no-ansi poetry install --no-interaction --no-ansi