This commit is contained in:
Marc Beninca 2024-07-29 11:12:25 +02:00
parent dd12290f3e
commit 07578c896b
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -34,7 +34,6 @@ spcd_main() {
spcd_install_python
# TODO move to Python
spcd_install_packages
spcd_clean_packages_cache
spcd_install_python_modules
spcd_write_python_module
spcd_switch_to_python "${@}"
@ -701,11 +700,6 @@ spcd_install_packages() {
esac
}
spcd_clean_packages_cache() {
spcd_step "Clean packages cache"
${SPCD_PM_CLEAN} || exit
}
spcd_install_python_modules() {
spcd_step "Install Python modules"
spcd_ipm__root="$(mktemp --directory)" || exit
@ -810,6 +804,7 @@ spcd_install_package() {
spcd_install_package__name="${1}"
if [ -n "${spcd_install_package__name}" ]; then
${SPCD_PM_INSTALL} "${spcd_install_package__name}" || exit
${SPCD_PM_CLEAN} || exit
fi
}