constant for venv

This commit is contained in:
Marc Beninca 2024-08-07 12:37:04 +02:00
parent c7617ec6c6
commit deb1ce6c49
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -704,17 +704,16 @@ spcd_install_packages() {
index-url = ${SPCD_URL_PYTHON}
"
spcd_split
spcd_ip__venv="/opt/venv"
"${SPCD_PYTHON_ALIAS}" -m "venv" "${spcd_ip__venv}"
"${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_VENV}"
spcd_split
for spcd_ip__name in "spcd" "rwx"; do
rsync --archive --verbose \
"${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
spcd_split
. "${spcd_ip__venv}/bin/activate"
. "${SPCD_VENV}/bin/activate"
spcd_split
pip install --upgrade "pip"
spcd_split
@ -955,6 +954,8 @@ SPCD_PM_APT="apt"
SPCD_PM_DNF="dnf"
SPCD_PM_PACMAN="pacman"
SPCD_VENV="/opt/venv"
SPCD_HORIZONTAL="────╌╌╌╌┄┄┄┄┈┈┈┈"
SPCD_OPEN="${SPCD_BOX_DOWN}${SPCD_BOX_LEFT}"