← Back to issue list

Launchpad bug 1956216: Fix Python installation

View original Github issue

Metadata

Project
snapcraft
Number
#3607
Type
pull request
State
merged
Author
mhoeher
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #3607 fixed Snapcraft's Docker Python setup by correcting PATH and symlinks and adding a site-packages .pth file; landed as 6f2dc4445.

Resolution: closed resolved

Reason: PR #3607 was merged and committed as 6f2dc4445, resolving Launchpad bug 1956216 by repairing Python interpreter selection and module paths in the Docker image.

Evaluated by: mr-cal-bot

No scores available.

Issue body

This change fixes some issues with the Python installation within a Docker container containing snapcraft built from the docker/Dockerfile in the project as described here: https://bugs.launchpad.net/snapcraft/+bug/1956216 Background: The image built from the Dockerfile used to work fine. Some weeks/months ago, it stopped working out of a sudden. Digging into the failures, it seems the Python installation that comes with recent snapcraft versions seems to be somehow broken. This change remedies this by fixing up the Python installation after installation within the Docker image. For this, we: - Adjust PATH so the correct Python interpreter will be used. - Fix a symlink. - Add a *.pth file to make sure the Python 3 in the snapcraft snap finds its own site-packages (for some reason, the site-packages is not in sys.path by default). - [ ] 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
stealth/space-bunny-alpha — closed resolved Merged PR #3607 fixed Snapcraft's Docker Python setup by correcting PATH and symlinks and adding a site-packages .pth file; landed as 6f2dc4445.
stealth/space-bunny-alpha — closed resolved Merged PR #3607 fixes Launchpad bug #1956216 by correcting Python PATH and symlinks in Snapcraft’s Docker image and adding a .pth file for site-packages.
qwen/qwen3.6-35b-a3b — — Merged. Resolves Launchpad bug 1956216 by fixing Python installation in the snapcraft Docker image. Adjusts PATH, corrects a symlink, and adds a .pth file to ensure the interpreter correctly locates site-packages.
qwen3.6-35b-a3b-mtp-q6 — — Merged to resolve Launchpad bug 1956216 by fixing Python installation in the snapcraft Docker image. Changes adjust PATH, correct a symlink, and add a .pth file to ensure proper site-packages resolution.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1956216 Snapcraft is no longer working within a Docker container snapcraft (launchpad) closed Reporter's own PR snapcore/snapcraft#3607 (branch launchpad-bug-1956216) fixed the Docker breakage by correcting the Python install/PATH and site-packages, merged as 808d3b399 (commit 6f2dc4445 "docker: fix python installation").
74%