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
|
* 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
|
||||||
|
|
4
spcd.sh
4
spcd.sh
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue