If core24 classic python snap stages python3.12-minimal, but no python3-minimal (symlink to the python binary), virtualenv is created incorrectly (using build host python) and pyvenv.cfg ends up with incorrect entry home = /usr/bin.
That makes this snap unusable on the host with the different Ubuntu version that the given core
It also breaks re-building core24 classic python snaps
What needs to get done
Add logic to the
post_prime
of the python plugin to error out if classic snap is created using system python (/usr/bin/python*
) https://github.com/canonical/snapcraft/blob/main/snapcraft/parts/plugins/python_common.py#L67Why it needs to get done
If core24 classic python snap stages
python3.12-minimal
, but nopython3-minimal
(symlink to the python binary), virtualenv is created incorrectly (using build host python) andpyvenv.cfg
ends up with incorrect entryhome = /usr/bin
.That makes this snap unusable on the host with the different Ubuntu version that the given core It also breaks re-building
core24
classic python snaps