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_install_python() {
|
||||||
spcd_step "Install Python"
|
spcd_step "Install Python"
|
||||||
spcd_install_package "${SPCD_PYTHON_PACKAGE}"
|
spcd_install_package "${SPCD_PYTHON_PACKAGE}"
|
||||||
spcd_split
|
spcd_substep "Link alias to command"
|
||||||
spcd_ln_python "${SPCD_PYTHON_COMMAND}"
|
spcd_ln_python "${SPCD_PYTHON_COMMAND}"
|
||||||
# venv
|
# venv
|
||||||
spcd_step "Install Python virtual environment"
|
spcd_substep "Install virtual environment"
|
||||||
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"
|
||||||
;;
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
spcd_split
|
spcd_substep "Configure PIP"
|
||||||
spcd_write "/etc/pip.conf" "\
|
spcd_write "/etc/pip.conf" "\
|
||||||
[global]
|
[global]
|
||||||
index-url = ${SPCD_URL_PYTHON}
|
index-url = ${SPCD_URL_PYTHON}
|
||||||
"
|
"
|
||||||
spcd_split
|
spcd_substep "Create virtual environment"
|
||||||
"${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_PYTHON_VENV}"
|
"${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_PYTHON_VENV}"
|
||||||
spcd_split
|
spcd_substep "Activate virtual environment"
|
||||||
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}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue