We get so many crashes which are due to Python modules not being functional at all during dist-upgrades (or after a partially failed one), that we really need to fix this properly once and for all. We should investigate the following possibilities:
* Drop all the symlink magic and instead add the non-version-dependent module directories to the default module search path of all python versions. (My prefered solution)
* Do all the symlink removal and updates in postinst only, so that it happens atomically.
We get so many crashes which are due to Python modules not being functional at all during dist-upgrades (or after a partially failed one), that we really need to fix this properly once and for all. We should investigate the following possibilities:
* Drop all the symlink magic and instead add the non-version- dependent module directories to the default module search path of all python versions. (My prefered solution)
* Do all the symlink removal and updates in postinst only, so that it happens atomically.