This commit is contained in:
Marc Beninca 2024-09-09 00:04:20 +02:00
parent f3a6a848d5
commit 992d79c125
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -765,27 +765,6 @@ nameserver ${value}
fi fi
} }
spcd_python_ln() {
local command="${1}"
if [ -n "${command}" ]; then
echo "${SPCD_PYTHON_ALIAS}${command}"
ln -f -s "${command}" \
"/usr/bin/${SPCD_PYTHON_ALIAS}"
fi
}
spcd_python_pip() {
if [ -n "${1}" ]; then
local name path target
name="$(basename "${1}")"
path="$(spcd_f_git_clone "${1}")"
path="${path}/${name}"
target="${SPCD_PYTHON_VENV_PACKAGES}"
cp --recursive "${path}" "${target}"
echo "${target}/${name}"
fi
}
# ╭───┬──────────────────────────────╮ # ╭───┬──────────────────────────────╮
# │ f │ ca = certificate authorities │ # │ f │ ca = certificate authorities │
# ╰───┴──────────────────────────────╯ # ╰───┴──────────────────────────────╯
@ -1028,6 +1007,27 @@ spcd_f_pm_pkg_upgrade() {
# │ f │ py = python │ # │ f │ py = python │
# ╰───┴─────────────╯ # ╰───┴─────────────╯
spcd_python_ln() {
local command="${1}"
if [ -n "${command}" ]; then
echo "${SPCD_PYTHON_ALIAS}${command}"
ln -f -s "${command}" \
"/usr/bin/${SPCD_PYTHON_ALIAS}"
fi
}
spcd_python_pip() {
if [ -n "${1}" ]; then
local name path target
name="$(basename "${1}")"
path="$(spcd_f_git_clone "${1}")"
path="${path}/${name}"
target="${SPCD_PYTHON_VENV_PACKAGES}"
cp --recursive "${path}" "${target}"
echo "${target}/${name}"
fi
}
# ╭───┬─────╮ # ╭───┬─────╮
# │ f │ txt │ # │ f │ txt │
# ╰───┴─────╯ # ╰───┴─────╯