copy git cloned packages into venv instead of system
Some checks failed
/ job (push) Failing after 14m56s

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

12
spcd.sh
View file

@ -706,13 +706,6 @@ index-url = ${SPCD_URL_PYTHON}
spcd_split spcd_split
"${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_VENV}" "${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_VENV}"
spcd_split spcd_split
for spcd_ip__name in "spcd" "rwx"; do
rsync --archive --verbose \
"${SPCD_PYTHON_PACKAGES}/${spcd_ip__name}/" \
"\
${SPCD_VENV}/lib/${SPCD_PYTHON_COMMAND}/site-packages/${spcd_ip__name}/"
done
spcd_split
. "${SPCD_VENV}/bin/activate" . "${SPCD_VENV}/bin/activate"
spcd_split spcd_split
pip install --upgrade "pip" pip install --upgrade "pip"
@ -726,6 +719,7 @@ ${SPCD_VENV}/lib/${SPCD_PYTHON_COMMAND}/site-packages/${spcd_ip__name}/"
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_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
@ -747,8 +741,8 @@ ${spcd_ipm__url}
echo "\ echo "\
${spcd_ipm__path} ${spcd_ipm__path}
${SPCD_PYTHON_PACKAGES}" ${spcd_ipm__target}"
cp --recursive "${spcd_ipm__path}" "${SPCD_PYTHON_PACKAGES}" || cp --recursive "${spcd_ipm__path}" "${spcd_ipm__target}" ||
exit exit
# check matching of file and variable # check matching of file and variable
spcd_ipm__script="${spcd_ipm__root}/${spcd_ipm__name}/spcd.sh" spcd_ipm__script="${spcd_ipm__root}/${spcd_ipm__name}/spcd.sh"