python/simple

This commit is contained in:
Marc Beninca 2024-08-30 23:34:11 +02:00
parent e705f46bda
commit da192ab113
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -464,7 +464,8 @@ spcd_step__environment_defaults_set() {
# /update/… # /update/…
SPCD_URL_OPENSUSE="https://download.opensuse.org" SPCD_URL_OPENSUSE="https://download.opensuse.org"
[ -n "${SPCD_URL_PYTHON}" ] || [ -n "${SPCD_URL_PYTHON}" ] ||
SPCD_URL_PYTHON="https://pypi.org/simple" # /simple
SPCD_URL_PYTHON="https://pypi.org"
[ -n "${SPCD_URL_ROCKY}" ] || [ -n "${SPCD_URL_ROCKY}" ] ||
# /$contentdir/$releasever/… # /$contentdir/$releasever/…
SPCD_URL_ROCKY="https://dl.rockylinux.org" SPCD_URL_ROCKY="https://dl.rockylinux.org"
@ -1234,7 +1235,7 @@ spcd_step__python_install() {
spcd_step "Configure PIP" spcd_step "Configure PIP"
spcd_os_write "/etc/pip.conf" "\ spcd_os_write "/etc/pip.conf" "\
[global] [global]
index-url = ${SPCD_URL_PYTHON} index-url = ${SPCD_URL_PYTHON}/simple
" "
spcd_step "Create" spcd_step "Create"
"${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_PYTHON_VENV}" "${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_PYTHON_VENV}"