Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error out if core24 classic python snap is created with the non-staged python binary #5144

Open
dariuszd21 opened this issue Nov 14, 2024 · 0 comments

Comments

@dariuszd21
Copy link
Contributor

dariuszd21 commented Nov 14, 2024

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#L67

Why it needs to get done

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant