review of the post install preparation script
Surprised by the slowness of post-install.sh during the build, I tried to write a Python version of it.
By rewriting the logic in Python, I manage to speed it up a lot (from ~20 min to a few seconds for pytools).
What I obtained at the end is to split post-install.sh
in two pieces:
- gen_post_install_info.py to generate the informations for the relocation of the build
- post-install.sh to apply the changes after the installation