mv venv
This commit is contained in:
parent
42f2cf73c5
commit
dd457b9a85
1 changed files with 20 additions and 20 deletions
40
spcd.sh
40
spcd.sh
|
@ -654,26 +654,6 @@ spcd_install_packages() {
|
|||
;;
|
||||
*) ;;
|
||||
esac
|
||||
# python venv
|
||||
spcd_step "Install Python virtual environment"
|
||||
case "${SPCD_OS_ID}" in
|
||||
"${SPCD_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}")
|
||||
spcd_install_package "python3-venv"
|
||||
;;
|
||||
# FIXME arch
|
||||
*) ;;
|
||||
esac
|
||||
spcd_split
|
||||
spcd_write "/etc/pip.conf" "\
|
||||
[global]
|
||||
index-url = ${SPCD_URL_PYTHON}
|
||||
"
|
||||
spcd_split
|
||||
spcd_ip__venv="/opt/venv"
|
||||
"${SPCD_PYTHON_ALIAS}" -m "venv" "${spcd_ip__venv}"
|
||||
. "${spcd_ip__venv}/bin/activate"
|
||||
spcd_split
|
||||
pip install --upgrade "pip"
|
||||
# rsync
|
||||
spcd_step "Install Rsync"
|
||||
spcd_install_package "rsync"
|
||||
|
@ -711,6 +691,26 @@ index-url = ${SPCD_URL_PYTHON}
|
|||
"${SPCD_PM_PACMAN}") spcd_install_package "openssh" ;;
|
||||
*) ;;
|
||||
esac
|
||||
# venv
|
||||
spcd_step "Install Python virtual environment"
|
||||
case "${SPCD_OS_ID}" in
|
||||
"${SPCD_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}")
|
||||
spcd_install_package "python3-venv"
|
||||
;;
|
||||
# FIXME arch
|
||||
*) ;;
|
||||
esac
|
||||
spcd_split
|
||||
spcd_write "/etc/pip.conf" "\
|
||||
[global]
|
||||
index-url = ${SPCD_URL_PYTHON}
|
||||
"
|
||||
spcd_split
|
||||
spcd_ip__venv="/opt/venv"
|
||||
"${SPCD_PYTHON_ALIAS}" -m "venv" "${spcd_ip__venv}"
|
||||
. "${spcd_ip__venv}/bin/activate"
|
||||
spcd_split
|
||||
pip install --upgrade "pip"
|
||||
}
|
||||
|
||||
spcd_install_python_modules() {
|
||||
|
|
Loading…
Reference in a new issue