From dd457b9a8595dcf1c14ee059b02bb959ab15c81b Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 6 Aug 2024 19:48:08 +0200 Subject: [PATCH] mv venv --- spcd.sh | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/spcd.sh b/spcd.sh index 32e98e4..577b5f5 100644 --- a/spcd.sh +++ b/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() {