parent
abf78e4d65
commit
87fa48ab3b
1 changed files with 5 additions and 3 deletions
|
@ -733,7 +733,8 @@ spcd_install_python() {
|
|||
spcd_step "Link alias to command"
|
||||
spcd_ln_python "${SPCD_PYTHON_COMMAND}"
|
||||
# venv
|
||||
spcd_step "Install virtual environment"
|
||||
spcd_step_in "Virtual environment"
|
||||
spcd_step "Install package"
|
||||
case "${SPCD_OS_ID}" in
|
||||
"${SPCD_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}")
|
||||
spcd_install_package "python3-venv"
|
||||
|
@ -745,12 +746,13 @@ spcd_install_python() {
|
|||
[global]
|
||||
index-url = ${SPCD_URL_PYTHON}
|
||||
"
|
||||
spcd_step "Create virtual environment"
|
||||
spcd_step "Create"
|
||||
"${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_PYTHON_VENV}"
|
||||
spcd_step "Activate virtual environment"
|
||||
spcd_step "Activate"
|
||||
export PATH="${SPCD_PYTHON_VENV_BINARIES}:${PATH}"
|
||||
export VIRTUAL_ENV="${SPCD_PYTHON_VENV}"
|
||||
spcd_step_out
|
||||
spcd_step_out
|
||||
}
|
||||
|
||||
spcd_install_python_modules() {
|
||||
|
|
Loading…
Reference in a new issue