cd_install_python_modules

This commit is contained in:
Marc Beninca 2024-06-08 17:15:53 +02:00
parent 5fdf986cde
commit 68c4444367
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

31
cd.sh
View file

@ -544,35 +544,38 @@ cd_clean_packages_cache () {
}
cd_install_python_modules () {
local path
local repository
local root
local url
cd_step "Install Python modules"
root="$(mktemp --directory)" || exit
echo "${root}"
for repository in "${CD_GIT_CHILD}" "${CD_GIT_PARENT}" ; do
cd_install_python_modules__root="$(mktemp --directory)" || exit
echo "${cd_install_python_modules__root}"
for cd_install_python_modules__repository \
in "${CD_GIT_CHILD}" "${CD_GIT_PARENT}" ; do
cd_split
url="${CD_PROJECTS_URL}/${repository}"
cd_install_python_modules__url="\
${CD_PROJECTS_URL}/${cd_install_python_modules__repository}"
echo "\
${url}
${cd_install_python_modules__url}
"
git clone \
"${url}" "${root}/${repository}" \
"${cd_install_python_modules__url}" \
"${cd_install_python_modules__root}\
/${cd_install_python_modules__repository}" \
|| exit
path="${root}/${repository}/${repository}"
cd_install_python_modules__path="\
${cd_install_python_modules__root}\
/${cd_install_python_modules__repository}\
/${cd_install_python_modules__repository}"
echo "\
${path}
${cd_install_python_modules__path}
${CD_PYTHON_PACKAGES}"
cp --recursive \
"${path}" "${CD_PYTHON_PACKAGES}" \
"${cd_install_python_modules__path}" "${CD_PYTHON_PACKAGES}" \
|| exit
done
cd_split
cd_ls "${CD_PYTHON_PACKAGES}"
cd_split
cd_rm "${root}"
cd_rm "${cd_install_python_modules__root}"
}
cd_write_python_module () {