sub/sub
All checks were successful
/ job (push) Successful in 11m52s

This commit is contained in:
Marc Beninca 2024-08-25 18:40:05 +02:00
parent abf78e4d65
commit 87fa48ab3b
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -733,7 +733,8 @@ spcd_install_python() {
spcd_step "Link alias to command" spcd_step "Link alias to command"
spcd_ln_python "${SPCD_PYTHON_COMMAND}" spcd_ln_python "${SPCD_PYTHON_COMMAND}"
# venv # venv
spcd_step "Install virtual environment" spcd_step_in "Virtual environment"
spcd_step "Install package"
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in
"${SPCD_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}") "${SPCD_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}")
spcd_install_package "python3-venv" spcd_install_package "python3-venv"
@ -745,12 +746,13 @@ spcd_install_python() {
[global] [global]
index-url = ${SPCD_URL_PYTHON} index-url = ${SPCD_URL_PYTHON}
" "
spcd_step "Create virtual environment" spcd_step "Create"
"${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_PYTHON_VENV}" "${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_PYTHON_VENV}"
spcd_step "Activate virtual environment" spcd_step "Activate"
export PATH="${SPCD_PYTHON_VENV_BINARIES}:${PATH}" export PATH="${SPCD_PYTHON_VENV_BINARIES}:${PATH}"
export VIRTUAL_ENV="${SPCD_PYTHON_VENV}" export VIRTUAL_ENV="${SPCD_PYTHON_VENV}"
spcd_step_out spcd_step_out
spcd_step_out
} }
spcd_install_python_modules() { spcd_install_python_modules() {