mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
58158505b0
commit
32461f28ea
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue