requirements: rely on host's python3-apt
Metadata
Current evaluation
Merged into master. Updates snapcraft to use the host's python3-apt, removes it from requirements.txt, and fixes a snap command entry warning.
Suggested action: —
No scores available.
Issue body
The python apt package must match the host. The current
requirements.txt basically assumes the host is Ubuntu 18.04.
- Update snap to include python3-apt stage package, working
around a snapcraft issue which attempts to use staged
python, whether or not it is desired.
- Update environment-setup-local script to install python3-apt
and enable system site packages in constructed venv.
- Remove python3-apt from requirements package.
While here, fix the app command entry in the snap to address
Snapcraft's warning about rewriting the command.
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged into master. Updates snapcraft to use the host's python3-apt, removes it from requirements.txt, and fixes a snap command entry warning. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into master. Updates snapcraft to use the host's python3-apt instead of bundling it, modifies the snap stage and environment setup scripts, and fixes the app command entry to resolve Snapcraft warnings. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into master. Updates snap and environment setup to rely on the host's python3-apt instead of bundling it, and fixes a snapcraft command warning. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2818 fix(snap): install python3-apt as a stage-package instead of building from source | charmcraft | merged | Merged. Fixed snap build failures from uv rejecting non-PEP 625-compliant python-apt sources by installing python3-apt as an apt stage-package instead of compiling from source. Removed requirements-noble.txt and updated snapcraft configuration. | |
| #6383 fix(snap): remove libapt-pkg-dev now that python3-apt is a stage-package | snapcraft | closed | Merged a fix to remove redundant libapt-pkg-dev from snapcraft build dependencies, resolving uv source distribution build failures by relying on the python3-apt stage-package. |