← 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 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).

Suggested action: close stale

Reason: The issue is 3161 days old with zero comments, and the reported behavior has since been fixed: PR #1975 'python plugin: find setup.py when source-subdir is used' was merged (resolving LP #1752481), and PR #751 was closed as superseded by fix #771. The original problem is no longer applicable to current code. Confidence is moderate because the repo had no pinned SHA, so I could not verify the fix in the current source tree.

Impact: 45 Quick Win: 24.75 Staleness: 95 Complexity: 45 Confidence: 70 Support Request: 0

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
qwen/qwen3.8-27b
Impact: 45
Quick Win: 24.75
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.
qwen3.6-35b-moe-q4
Staleness: 98
Complexity: 45
Confidence: 85
Support Request: 5
close stale Python plugin fails to locate setup.py in a subdirectory, ignoring source-subdir. Report is 8.5 years old with zero maintainer interaction or labels.

Update history

No update history recorded yet.

Related work

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

    Merged PR titled 'python plugin: find setup.py when source-subdir is used', resolving LP #1752481 — directly matches this issue's symptom.

  • Likely Fixed By: snapcraft#771 (confidence 60%)

    Per the #751 record, this fix superseded the earlier unmerged patch to run setup.py in a source subdir; likely the original fix for this 2017-era report.

Related issues

Issue Project State Summary Similarity
#1975 python plugin: find setup.py when source-subdir is used snapcraft merged Merged a Python plugin fix to locate setup.py when source-subdir is used, resolving LP #1752481. Reviewers approved but flagged architectural concerns about sourcedir versus builddir. The patch will be backported to outside consumers.
79%
#751 python3 plugin: run setup.py in source subdir if such option exists snapcraft closed Patch to run setup.py in a specified source subdirectory was closed without merging. It was superseded and resolved by fix #771.
78%