venv/create,activate
This commit is contained in:
parent
e770a6e721
commit
a9c8f13068
2 changed files with 4 additions and 2 deletions
|
@ -85,8 +85,6 @@ from various contexts of CA, CI and OCI / OS.
|
|||
* actions
|
||||
* includes
|
||||
* handle python virtual environment
|
||||
* create venv
|
||||
* activate venv
|
||||
* upgrade pip
|
||||
* install packages
|
||||
* ruff
|
||||
|
|
4
spcd.sh
4
spcd.sh
|
@ -668,6 +668,10 @@ spcd_install_packages() {
|
|||
[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"
|
||||
# rsync
|
||||
spcd_step "Install Rsync"
|
||||
spcd_install_package "rsync"
|
||||
|
|
Loading…
Reference in a new issue