aurweb/docker/scripts/install-python-deps.sh
moson-mo 32461f28ea
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>
2023-06-15 14:19:02 +02:00

8 lines
191 B
Bash
Executable file

#!/bin/bash
set -eou pipefail
if [ ! -z "${COMPOSE+x}" ]; then
export PIP_BREAK_SYSTEM_PACKAGES=1
poetry config virtualenvs.create false
fi
poetry install --no-interaction --no-ansi