python
All checks were successful
/ job (push) Successful in 10m55s

This commit is contained in:
Marc Beninca 2024-08-26 03:00:48 +02:00
parent 8c0ae4174c
commit f92d49fe82
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1098,8 +1098,8 @@ spcd_packages_install_git() {
# │ steps │ python │ # │ steps │ python │
# ╰───────┴────────╯ # ╰───────┴────────╯
spcd_install_python() { spcd_python_install() {
spcd_step_in "Install Python" spcd_step "Install package"
spcd_install_package "${SPCD_PYTHON_PACKAGE}" spcd_install_package "${SPCD_PYTHON_PACKAGE}"
spcd_step "Link alias to command" spcd_step "Link alias to command"
spcd_python_ln "${SPCD_PYTHON_COMMAND}" spcd_python_ln "${SPCD_PYTHON_COMMAND}"
@ -1123,11 +1123,10 @@ index-url = ${SPCD_URL_PYTHON}
export PATH="${SPCD_PYTHON_VENV_BINARIES}:${PATH}" export PATH="${SPCD_PYTHON_VENV_BINARIES}:${PATH}"
export VIRTUAL_ENV="${SPCD_PYTHON_VENV}" export VIRTUAL_ENV="${SPCD_PYTHON_VENV}"
spcd_step_out spcd_step_out
spcd_step_out
} }
spcd_install_python_modules() { spcd_python_modules() {
spcd_step_in "Python modules" spcd_step_in "Modules"
spcd_ipm__target="${SPCD_PYTHON_VENV_PACKAGES}" spcd_ipm__target="${SPCD_PYTHON_VENV_PACKAGES}"
spcd_step "List" spcd_step "List"
spcd_os_ls "${spcd_ipm__target}" spcd_os_ls "${spcd_ipm__target}"
@ -1214,8 +1213,8 @@ spcd_install_packages() {
spcd_step_out spcd_step_out
} }
spcd_write_python_module() { spcd_python_write_module() {
spcd_step "Write Python module" spcd_step "Write module"
for spcd_wpm__variable in \ for spcd_wpm__variable in \
OS_ID OS_VERSION \ OS_ID OS_VERSION \
PROJECT_ROOT PROJECT_PATH PROJECT_NAME \ PROJECT_ROOT PROJECT_PATH PROJECT_NAME \
@ -1233,8 +1232,8 @@ SPCD_STEP = $((SPCD_STEP + 1))
done done
} }
spcd_switch_to_python() { spcd_python_switch() {
spcd_step "Switch to Python" spcd_step "Switch"
spcd_stp__name="$(basename "${SPCD_GIT_MAIN}")" spcd_stp__name="$(basename "${SPCD_GIT_MAIN}")"
echo "\ echo "\
${SPCD_PATH} ${SPCD_PATH}
@ -1278,11 +1277,12 @@ spcd_main() {
spcd_packages_install_git spcd_packages_install_git
spcd_step_out spcd_step_out
# python # python
spcd_install_python spcd_step_in "Python"
spcd_install_python_modules spcd_python_install
spcd_python_modules
spcd_install_packages spcd_install_packages
spcd_write_python_module spcd_python_write_module
spcd_switch_to_python spcd_python_switch
} }
spcd_main spcd_main