venv/create,activate

This commit is contained in:
Marc Beninca 2024-08-06 19:45:22 +02:00
parent e770a6e721
commit a9c8f13068
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 4 additions and 2 deletions

View file

@ -85,8 +85,6 @@ from various contexts of CA, CI and OCI / OS.
* actions * actions
* includes * includes
* handle python virtual environment * handle python virtual environment
* create venv
* activate venv
* upgrade pip * upgrade pip
* install packages * install packages
* ruff * ruff

View file

@ -668,6 +668,10 @@ spcd_install_packages() {
[global] [global]
index-url = ${SPCD_URL_PYTHON} 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"
# rsync # rsync
spcd_step "Install Rsync" spcd_step "Install Rsync"
spcd_install_package "rsync" spcd_install_package "rsync"