constant for python venv packages
Some checks failed
/ job (push) Failing after 6m21s

This commit is contained in:
Marc Beninca 2024-08-07 13:35:39 +02:00
parent c6798f7035
commit cbb5a9a370
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

13
spcd.sh
View file

@ -423,6 +423,8 @@ Acquire::https::Verify-Peer False;
;; ;;
*) ;; *) ;;
esac esac
spcd_split
spcd_echo "SPCD_PYTHON_COMMAND" "SPCD_PYTHON_PACKAGE"
# set python packages # set python packages
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}" | "${SPCD_OS_FEDORA}" | "${SPCD_OS_ROCKY}") "${SPCD_OS_ALMA}" | "${SPCD_OS_FEDORA}" | "${SPCD_OS_ROCKY}")
@ -436,8 +438,10 @@ Acquire::https::Verify-Peer False;
;; ;;
*) ;; *) ;;
esac esac
SPCD_PYTHON_VENV_PACKAGES="\
${SPCD_PYTHON_VENV}/lib/${SPCD_PYTHON_COMMAND}/site-packages"
spcd_split spcd_split
spcd_echo "SPCD_PYTHON_COMMAND" "SPCD_PYTHON_PACKAGE" "SPCD_PYTHON_PACKAGES" spcd_echo "SPCD_PYTHON_PACKAGES" "SPCD_PYTHON_VENV_PACKAGES"
# variables # variables
[ -n "${SPCD_CA_1}" ] && SPCD_CA=true [ -n "${SPCD_CA_1}" ] && SPCD_CA=true
# #
@ -719,8 +723,7 @@ index-url = ${SPCD_URL_PYTHON}
spcd_install_python_modules() { spcd_install_python_modules() {
spcd_step "Install Python modules" spcd_step "Install Python modules"
spcd_ipm__root="$(mktemp --directory)" || exit spcd_ipm__root="$(mktemp --directory)" || exit
spcd_ipm__target="\ spcd_ipm__target="${SPCD_PYTHON_VENV_PACKAGES}"
${SPCD_PYTHON_VENV}/lib/${SPCD_PYTHON_COMMAND}/site-packages"
echo "${spcd_ipm__root}" echo "${spcd_ipm__root}"
for spcd_ipm__repository in "${SPCD_GIT_MAIN}" "${SPCD_GIT_ROOT}"; do for spcd_ipm__repository in "${SPCD_GIT_MAIN}" "${SPCD_GIT_ROOT}"; do
case "${spcd_ipm__repository}" in case "${spcd_ipm__repository}" in
@ -759,7 +762,7 @@ ${spcd_ipm__target}"
fi fi
done done
spcd_split spcd_split
spcd_ls "${SPCD_PYTHON_PACKAGES}" spcd_ls "${spcd_ipm__target}"
spcd_split spcd_split
spcd_rm "${spcd_ipm__root}" spcd_rm "${spcd_ipm__root}"
} }
@ -774,7 +777,7 @@ spcd_write_python_module() {
spcd_wpm__text="${spcd_wpm__text}${spcd_wpm__value} spcd_wpm__text="${spcd_wpm__text}${spcd_wpm__value}
" "
done done
spcd_write "${SPCD_PYTHON_PACKAGES}/env.py" "${spcd_wpm__text} spcd_write "${SPCD_PYTHON_VENV_PACKAGES}/env.py" "${spcd_wpm__text}
SPCD_STEP = $((SPCD_STEP + 1)) SPCD_STEP = $((SPCD_STEP + 1))
" "
} }