← Back to issue list

python plugin ignores source-subdir

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1741131
Type
issue
State
open
Author
~elopio
Labels
—
Created
Updated
Closed
—

Current evaluation

Python plugin setup.py discovery now honors source-subdir; snapcraft PR #1975 fixed the bug in commit 0dbc20658, but this Launchpad report remains open.

Suggested action: close resolved

Reason: The maintainer identified that the plugin used sourcedir instead of builddir, and the issue provides a concrete reproduction. Merged PR snapcraft#1975, commit 0dbc20658, implemented the fix by making setup.py discovery honor source-subdir.

Evaluated by: mr-cal-bot

Impact: 48 Quick Win: 41 Complexity: 12 Confidence: 99 Actionability: 96

Issue body

When the setup.py file is in a subdir of the project, the python plugin can't find it and thus finishes without installing anything. To reproduce, let's modify the python-hello test snap: $ mkdir tmp $ cd tmp $ git clone https://github.com/snapcore/snapcraft $ cp -R snapcraft/snapcraft/tests/integration/snaps/python-hello/ . $ cd python-hello $ mkdir subdir $ mv hello subdir/ $ mv setup.py subdir/ $ echo " source-subdir: subdir" >> snap/snapcraft.yaml $ snapcraft

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 48
Quick Win: 41
Complexity: 12
Confidence: 99
Actionability: 96
close resolved Python plugin setup.py discovery now honors source-subdir; snapcraft PR #1975 fixed the bug in commit 0dbc20658, but this Launchpad report remains open.
stealth/space-bunny-alpha
Impact: 50
Quick Win: 40
Complexity: 15
Confidence: 99
Actionability: 95
close resolved Python plugin ignored source-subdir when locating setup.py, producing an incomplete snap; fixed by snapcraft commit 0dbc20658.
stealth/space-bunny-alpha
Impact: 55
Quick Win: 44
Complexity: 15
Confidence: 99
Actionability: 95
close resolved Python plugin setup.py discovery ignored source-subdir; merged PR #1975 fixed it in commit 0dbc20658, so the still-open issue is resolved.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 19
Complexity: 20
Confidence: 50
Actionability: 80
needs triage python plugin ignores source-subdir keyword, causing setup.py not to be found when in a subdirectory. Issue is open, unlabelled, and has no comments.
qwen/qwen3.8-27b
Impact: 45
Quick Win: 25
Staleness: 95
Complexity: 45
Confidence: 70
Support Request: 0
close stale Python plugin can't find setup.py when it lives in a source-subdir, so it finishes without installing anything. No comments; a fix to locate setup.py under source-subdir was merged in PR #1975 (earlier #771 superseded #751).
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 45
Confidence: 85
Support Request: 10
close stale Python plugin fails to locate setup.py when source-subdir is specified in snapcraft.yaml. Issue is over 8 years old with no maintainer response or activity.
qwen/qwen3.6-35b-a3b
Staleness: 100
Complexity: 20
Confidence: 95
Support Request: 0
close stale Python plugin fails to locate setup.py when source-subdir is specified in snapcraft.yaml. Issue is over 8 years old with no activity or maintainer response.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 30
Confidence: 90
Support Request: 5
close stale Python plugin fails to locate setup.py when source-subdir is configured. Reported 8.5 years ago with reproduction steps but no maintainer response or labels.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcraft#1975 (confidence 99%)

    Merged PR 1975 resolved setup.py discovery with source-subdir in commit 0dbc20658.

Related issues

Issue Project State Summary Similarity
#1975 python plugin: find setup.py when source-subdir is used snapcraft merged Merged in PR #1975 as commit 0dbc20658, fixing Python plugin setup.py discovery to honor source-subdir for LP bug #1752481.
80%
#751 python3 plugin: run setup.py in source subdir if such option exists snapcraft closed Closed unmerged as superseded by canonical/snapcraft#771, merged as commit bb7bd40e1 with Python plugin improvements fixing setup.py handling for source-subdir.
77%