python plugin: properly handle distutils on bionic
Metadata
Current evaluation
Merged in #2083 via commit d1fd9a226, fixing the Python plugin to account for Bionic's separately packaged Python 3 distutils.
Resolution: closed resolved
Reason: The pull request was merged as d1fd9a226. Its change properly handles python-distutils on Ubuntu Bionic, where distutils is packaged separately for Python 3.
Evaluated by: mr-cal-bot
No scores available.
Issue body
distutils has been split out into its own package for python3 but
not for python2.
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)?
- [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)?
- [x] Have you successfully run `./runtests.sh static`?
- [x] Have you successfully run `./runtests.sh unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged in #2083 via commit d1fd9a226, fixing the Python plugin to account for Bionic's separately packaged Python 3 distutils. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged snapcraft/snapcraft#2058 (cec1a111c), ensuring the Python plugin installs python-distutils on Ubuntu Bionic, where distutils is a separate package for Python 3. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged a Python plugin fix for Ubuntu Bionic. Updates stage-packages to handle the split distutils package, ensuring correct dependency resolution for Python 2 and 3. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a fix for the Python plugin to handle Ubuntu Bionic by adding python3-distutils to stage-packages. The maintainer confirmed the Bionic-specific dependency is required for snap execution. Changes passed static and unit tests. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/snapcraft#2058
(confidence 90%)
Earlier PR #2058, commit cec1a111c, added the initial Bionic python-distutils handling that #2083 followed up on.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1762456 Python plugin is broken on bionic | snapcraft (launchpad) | closed | Bionic python plugin breakage was fixed by installing python-distutils in merged PR canonical/snapcraft#2058 (commit cec1a111c); reported by ~bjornt with a patch, later refined by d1fd9a226. | |
| #2058 python plugin: install python-distutils when run on bionic | snapcraft | merged | Merged in snapcraft#2058 via cec1a111c, adding python-distutils on Bionic so pip could access distutils.sysconfig; fixes Launchpad bug #1762456. |