py/download

This commit is contained in:
Marc Beninca 2024-09-09 01:04:13 +02:00
parent 373f5ef236
commit 5543b5de66
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1101,6 +1101,32 @@ spcd_f_py_clone() {
fi fi
} }
spcd_f_py_download() {
spcd_step_in "Modules"
local target path script check
target="${SPCD_PYTHON_VENV_PACKAGES}"
spcd_step "List"
spcd_os_ls "${target}"
spcd_step "Main"
path="$(spcd_f_py_clone "${SPCD_GIT_SPCD}")"
# check matching of file and variable
spcd_step "Check"
script="${path}/bootstrap.sh"
ls -l "${script}"
check="${script}.${_SPCD_CMD_SUM}"
"${_SPCD_CMD_SUM}" "${script}" >"${check}"
printf "%s" "${SPCD}" >"${script}"
ls -l "${script}"
dos2unix "${script}"
ls -l "${script}"
"${_SPCD_CMD_SUM}" -c "${check}" || spcd_error_ci "SPCD"
spcd_step "Root"
spcd_f_py_clone "${SPCD_GIT_RWX}"
spcd_step "List"
spcd_os_ls "${target}"
spcd_step_out
}
spcd_f_py_install() { spcd_f_py_install() {
spcd_step "Install package" spcd_step "Install package"
spcd_f_pm_pkg_install "${SPCD_PYTHON_PACKAGE}" spcd_f_pm_pkg_install "${SPCD_PYTHON_PACKAGE}"
@ -1530,36 +1556,6 @@ spcd_step__packages_install_git() {
spcd_f_pm_pkg_install "git" spcd_f_pm_pkg_install "git"
} }
# ╭───┬────────╮
# │ s │ python │
# ╰───┴────────╯
spcd_step__python_modules() {
spcd_step_in "Modules"
local target path script check
target="${SPCD_PYTHON_VENV_PACKAGES}"
spcd_step "List"
spcd_os_ls "${target}"
spcd_step "Main"
path="$(spcd_f_py_clone "${SPCD_GIT_SPCD}")"
# check matching of file and variable
spcd_step "Check"
script="${path}/bootstrap.sh"
ls -l "${script}"
check="${script}.${_SPCD_CMD_SUM}"
"${_SPCD_CMD_SUM}" "${script}" >"${check}"
printf "%s" "${SPCD}" >"${script}"
ls -l "${script}"
dos2unix "${script}"
ls -l "${script}"
"${_SPCD_CMD_SUM}" -c "${check}" || spcd_error_ci "SPCD"
spcd_step "Root"
spcd_f_py_clone "${SPCD_GIT_RWX}"
spcd_step "List"
spcd_os_ls "${target}"
spcd_step_out
}
# ╭──────╮ # ╭──────╮
# │ main │ # │ main │
# ╰──────╯ # ╰──────╯
@ -1615,7 +1611,7 @@ spcd_main() {
# python # python
spcd_step_in "Python" spcd_step_in "Python"
spcd_f_py_install spcd_f_py_install
spcd_step__python_modules spcd_f_py_download
spcd_f_pkg spcd_f_pkg
spcd_f_py_save spcd_f_py_save
spcd_f_py_switch spcd_f_py_switch