install venv if necessary

This commit is contained in:
Marc Beninca 2024-08-06 15:51:26 +02:00
parent b414222048
commit 17c9b919aa
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 9 additions and 1 deletions

View file

@ -84,7 +84,6 @@ from various contexts of CA, CI and OCI / OS.
* actions * actions
* includes * includes
* handle python virtual environment * handle python virtual environment
* install venv if necessary
* upgrade pip * upgrade pip
* install packages * install packages
* ruff * ruff

View file

@ -653,6 +653,15 @@ spcd_install_packages() {
;; ;;
*) ;; *) ;;
esac 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
# rsync # rsync
spcd_step "Install Rsync" spcd_step "Install Rsync"
spcd_install_package "rsync" spcd_install_package "rsync"