← Back to issue list

plainbox-provider plugin: filter out sitecustomize

View original Github issue

Metadata

Project
snapcraft
Number
#1139
Type
pull request
State
merged
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Merged in #1139 via c861ed976, filtering sitecustomize.py from plainbox-provider stage-packages to prevent conflicts and retain the plugin's functional copy (LP #1663792).

Resolution: closed resolved

Reason: The approved PR was merged as commit c861ed976, updating the plainbox-provider plugin and tests to filter out staged sitecustomize.py files.

Evaluated by: mr-cal-bot

No scores available.

Issue body

When a part that uses the plainbox-provider plugin adds a `stage-packages` entry for a python3 package, conflicts will occur as this plugin most likely always comes `after` a python part that actually adds functionality. Given that sitecustomize.py will be different and the one added by `stage-packages` is not really useful in a snap we filter it out. LP: #1663792 Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged in #1139 via c861ed976, filtering sitecustomize.py from plainbox-provider stage-packages to prevent conflicts and retain the plugin's functional copy (LP #1663792).
stealth/space-bunny-alpha — closed resolved Merged into Snapcraft as commit c861ed976; plainbox-provider now filters the staged Python sitecustomize.py to prevent file conflicts (LP #1663792).
qwen/qwen3.6-35b-a3b — — Merged a fix filtering out conflicting sitecustomize.py in the plainbox-provider plugin to prevent build conflicts during Python package staging. Approved by two reviewers and passing CI, the change resolves Launchpad bug #1663792.
qwen3.6-35b-a3b-mtp-q6 — — Merged. The plainbox-provider plugin now filters out sitecustomize.py to prevent conflicts when staging python3 packages, as the staged version is unnecessary in snaps. Resolves LP: #1663792.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1663792 it is no longer possible to have a plainbox part with a python stage-package snapcraft (launchpad) closed Fixed by snapcore/snapcraft PR #1139 (commit c861ed976), which filters the conflicting sitecustomize file from plainbox-provider package trees.
72%
#2140 lp 1768233 workaround for plainbox_provider plugin snapcraft merged Merged PR #2140, restoring plainbox-provider Checkbox builds by adding pip, setuptools and wheel as stage-packages, with an integration test (commit d932f0fc6).
70%