constant for venv
This commit is contained in:
parent
c7617ec6c6
commit
deb1ce6c49
1 changed files with 5 additions and 4 deletions
9
spcd.sh
9
spcd.sh
|
@ -704,17 +704,16 @@ spcd_install_packages() {
|
||||||
index-url = ${SPCD_URL_PYTHON}
|
index-url = ${SPCD_URL_PYTHON}
|
||||||
"
|
"
|
||||||
spcd_split
|
spcd_split
|
||||||
spcd_ip__venv="/opt/venv"
|
"${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_VENV}"
|
||||||
"${SPCD_PYTHON_ALIAS}" -m "venv" "${spcd_ip__venv}"
|
|
||||||
spcd_split
|
spcd_split
|
||||||
for spcd_ip__name in "spcd" "rwx"; do
|
for spcd_ip__name in "spcd" "rwx"; do
|
||||||
rsync --archive --verbose \
|
rsync --archive --verbose \
|
||||||
"${SPCD_PYTHON_PACKAGES}/${spcd_ip__name}/" \
|
"${SPCD_PYTHON_PACKAGES}/${spcd_ip__name}/" \
|
||||||
"\
|
"\
|
||||||
${spcd_ip__venv}/lib/${SPCD_PYTHON_COMMAND}/site-packages/${spcd_ip__name}/"
|
${SPCD_VENV}/lib/${SPCD_PYTHON_COMMAND}/site-packages/${spcd_ip__name}/"
|
||||||
done
|
done
|
||||||
spcd_split
|
spcd_split
|
||||||
. "${spcd_ip__venv}/bin/activate"
|
. "${SPCD_VENV}/bin/activate"
|
||||||
spcd_split
|
spcd_split
|
||||||
pip install --upgrade "pip"
|
pip install --upgrade "pip"
|
||||||
spcd_split
|
spcd_split
|
||||||
|
@ -955,6 +954,8 @@ SPCD_PM_APT="apt"
|
||||||
SPCD_PM_DNF="dnf"
|
SPCD_PM_DNF="dnf"
|
||||||
SPCD_PM_PACMAN="pacman"
|
SPCD_PM_PACMAN="pacman"
|
||||||
|
|
||||||
|
SPCD_VENV="/opt/venv"
|
||||||
|
|
||||||
SPCD_HORIZONTAL="────╌╌╌╌┄┄┄┄┈┈┈┈"
|
SPCD_HORIZONTAL="────╌╌╌╌┄┄┄┄┈┈┈┈"
|
||||||
|
|
||||||
SPCD_OPEN="${SPCD_BOX_DOWN}${SPCD_BOX_LEFT}"
|
SPCD_OPEN="${SPCD_BOX_DOWN}${SPCD_BOX_LEFT}"
|
||||||
|
|
Loading…
Reference in a new issue