missing paths in override-* shell with v2 python plugin
Metadata
Current evaluation
Fixed by merged PR #3103, commit a4f125a3a, making the Python v2 plugin add the interpreter directly to PATH.
Resolution: closed resolved
Reason: The issue’s sole comment linked snapcore/snapcraft#3103. Repository metadata confirms PR #3103 was merged as commit a4f125a3a and resolved the PATH/interpreter selection problem for override-build environments.
Evaluated by: mr-cal-bot
No scores available.
Issue body
When building a python part with an override-build based on core20, PATH is missing part-related paths, compared with the core18 equivalent.
As a result, the python3 executable ends up being the system one, not the one for the snap (so it will see all libraries installed on the system)
As an example:
core20:
PATH: /usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/snapcraft/4657/bin/scriptlet-bin
which python3: /usr/bin/python3
core18:
PATH: /root/stage/usr/sbin:/root/stage/usr/bin:/root/stage/sbin:/root/stage/bin:/root/parts/test-python/install/usr/sbin:/root/parts/test-python/install/usr/bin:/root/parts/test-python/install/sbin:/root/parts/test-python/install/bin:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/snapcraft/4657/bin/scriptlet-bin
which python3: /root/parts/test-python/install/usr/bin/python3
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #3103, commit a4f125a3a, making the Python v2 plugin add the interpreter directly to PATH. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR snapcore/snapcraft#3103 (commit a4f125a3a), which makes the Python v2 plugin set the interpreter path directly instead of relying on activation. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without a reported fix or linked resolution for missing part paths in core20 override-build shells. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without a documented resolution; the core20 override-build PATH discrepancy received no recorded comments, follow-up, or linked fix. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The v2 python plugin omitted part-related paths from override-build shells in core20, causing python3 to resolve to the system binary. No comments or fixes were provided, indicating the issue was abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The v2 python plugin omitted part-related paths from the override-build shell on core20, causing python3 to resolve to the system binary. No comments or linked fixes were recorded. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. The v2 python plugin omitted part-related paths from the override-build shell on core20, causing the system python3 to execute instead of the snap version. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The missing part-related PATH variables in override-build for the v2 python plugin on core20 were likely abandoned or superseded by newer plugin versions. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without documented resolution. The v2 python plugin omitted part-related PATH entries in override-build shells for core20, causing python3 to resolve to the system executable. No fix was applied. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#3103
(confidence 100%)
Merged commit a4f125a3a updated the Python v2 plugin to set the interpreter path directly, addressing the missing PATH entries.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3103 python v2 plugin: set path to the interpreter | snapcraft | merged | Merged PR #3103 as a4f125a3a, making the Python v2 plugin add the interpreter directly to PATH instead of using activation (LP #1876162). |