This commit is contained in:
parent
8166893506
commit
37e6767612
1 changed files with 5 additions and 5 deletions
10
spcd.sh
10
spcd.sh
|
@ -669,24 +669,24 @@ spcd_install_git() {
|
|||
spcd_install_python() {
|
||||
spcd_step "Install Python"
|
||||
spcd_install_package "${SPCD_PYTHON_PACKAGE}"
|
||||
spcd_split
|
||||
spcd_substep "Link alias to command"
|
||||
spcd_ln_python "${SPCD_PYTHON_COMMAND}"
|
||||
# venv
|
||||
spcd_step "Install Python virtual environment"
|
||||
spcd_substep "Install virtual environment"
|
||||
case "${SPCD_OS_ID}" in
|
||||
"${SPCD_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}")
|
||||
spcd_install_package "python3-venv"
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
spcd_split
|
||||
spcd_substep "Configure PIP"
|
||||
spcd_write "/etc/pip.conf" "\
|
||||
[global]
|
||||
index-url = ${SPCD_URL_PYTHON}
|
||||
"
|
||||
spcd_split
|
||||
spcd_substep "Create virtual environment"
|
||||
"${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_PYTHON_VENV}"
|
||||
spcd_split
|
||||
spcd_substep "Activate virtual environment"
|
||||
export PATH="${SPCD_PYTHON_VENV_BINARIES}:${PATH}"
|
||||
export VIRTUAL_ENV="${SPCD_PYTHON_VENV}"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue