← Back to issue list

python package failed to install because of directories in the source

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1673658
Type
issue
State
open
Author
~thomir-deactivatedaccount
Labels
plugin
Created
Updated
Closed
—

Current evaluation

2017 report that python plugin stopped staging scripts after 2.27.1; reporter found stale build/, dist/, egg-info/ and ve3/ in the source dir caused it. Maintainer: 'not a regression', suggested maybe warning instead.

Suggested action: close not a bug

Reason: The reporter resolved it themselves: after deleting build/, dist/, *.snap, thomir_says.egg-info/ and ve3/ left in the source directory, the build succeeded ('The build starts working once I removed a few old files and directories that weren't being removed by snapcraft clean'). ~elopio explicitly concluded 'We discovered that this is not a regression', so no snapcraft defect was demonstrated; the only residual ask is an optional nicety ('maybe the python plugin could warn if it finds directories that will cause errors during install'), which is vague and unrequested. The 2017 legacy python plugin was also later replaced (snapcraft#4044, 2023), so the exact code path is gone.

Evaluated by: mr-cal-bot

Impact: 15 Quick Win: 4 Complexity: 30 Confidence: 72 Actionability: 40

Issue body

Edit: title updated. See comment #3. Upon upgrading to 2.27.1, I find that snapcraft no longer builds my trivial test snap (hosted here: https://code.launchpad.net/~thomir/+git/thomir-says). It looks like the executable script is no longer being staged, but it does appear in the 'build' directory. While I don't mind that my test snap no longer builds, I worry that this may represent a major regression for all (or at least some) python-based snaps.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 15
Quick Win: 4
Complexity: 30
Confidence: 72
Actionability: 40
close not a bug 2017 report that python plugin stopped staging scripts after 2.27.1; reporter found stale build/, dist/, egg-info/ and ve3/ in the source dir caused it. Maintainer: 'not a regression', suggested maybe warning instead.
stealth/space-bunny-alpha
Impact: 22
Quick Win: 5
Complexity: 35
Confidence: 78
Actionability: 32
close not a bug 2017 report of python plugin failing to stage executables after 2.27.1 upgrade; reporter confirmed stale files in the source dir (build/, dist/, egg-info/, ve3/) were the cause, maintainer closed as 'not a regression'; legacy plugin since rewritten.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 5
Complexity: 40
Confidence: 50
Actionability: 30
needs triage Python plugin regression in 2.27.1 where executables are not staged. Untriaged, 9.5 years old, no maintainer response.
qwen/qwen3.8-27b
Impact: 15
Quick Win: 9
Staleness: 95
Complexity: 40
Confidence: 70
Support Request: 10
close stale Snapcraft 2.27.1-era report that the python plugin fails to install packages when the source contains directories, leaving the executable unstaged. No comments, author account deactivated, and the affected version is long obsolete.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 95
Support Request: 30
close stale Reported regression in snapcraft v2.27.1 where python package scripts fail to stage. The issue is over nine years old, has no maintainer interaction, and the author's account is deactivated.
qwen/qwen3.6-35b-a3b
Staleness: 100
Complexity: 25
Confidence: 95
Support Request: 10
close stale Report of a snapcraft 2.27.1 regression where python package scripts fail to stage properly. Issue is over 9 years old with no maintainer interaction or updates.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 20
Confidence: 95
Support Request: 30
close stale Reports a snapcraft 2.27.1 regression where python executables fail to stage. Unanswered for over 9 years; the referenced version is long deprecated and the project has moved on significantly.

Update history

Date Change
created

Related work

  • Related To: snapcraft#4044 (confidence 30%)

    Commit 302e58eeb 'plugins: add snapcraft specific python plugin' (2023) replaced the legacy in-repo python plugin the report was about; current plugin is a thin subclass of craft-parts python_plugin.

Related issues

No related issues found above the similarity threshold.