← Back to issue list

python plugin doesn't properly handle dependencies from extra-require in "python-packages"

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1817771
Type
issue
State
open
Author
~ack
Labels
Created
Updated
Closed

Current evaluation

Python plugin ignores extra-require dependencies when multiple extras are specified for the same package (e.g. SQLAlchemy[postgresql] and SQLAlchemy[mysql]); only the first extra's deps install. 7+ years old, no maintainer activity, core18-based, superseded by newer plugin architecture.

Suggested action: close stale

Reason: The issue is 2743 days old with zero comments and no maintainer engagement. It targets a core18-based snap, which is an EOL base. The current codebase has been substantially reworked (python v2 plugin, plugins v2), and the original python plugin code path that mishandled multiple extras for the same package no longer exists in the same form. The workaround (listing dependencies explicitly) is straightforward, and the affected base is no longer supported.

Impact: 30 Quick Win: 18.0 Staleness: 95 Complexity: 40 Confidence: 70 Support Request: 10

Issue body

I'm trying to use the following in a core18-based snap, inside a python part: python-packages: - SQLAlchemy[postgresql] - SQLAlchemy[mysql] What happens is that only the dependencies from the first extra-part (specifically psycopg2) gets installed, whereas mysqlclient doesn't. If I specify them explicitly as python-packages: - psycopg2 - mysqlclient it works as expected. It seems multiple extra-require for the same package are not handled correctly.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 18.0
Staleness: 95
Complexity: 40
Confidence: 70
Support Request: 10
close stale Python plugin ignores extra-require dependencies when multiple extras are specified for the same package (e.g. SQLAlchemy[postgresql] and SQLAlchemy[mysql]); only the first extra's deps install. 7+ years old, no maintainer activity, core18-based, superseded by newer plugin architecture.
qwen/qwen3.6-35b-a3b
Staleness: 100
Complexity: 20
Confidence: 90
Support Request: 10
close stale Over 7-year-old report regarding Python plugin dependency handling for extra-requirements. Unaddressed, references deprecated core18 base, and likely irrelevant due to major architectural changes in the project.
qwen/qwen3.6-35b-a3b
Staleness: 100
Complexity: 30
Confidence: 90
Support Request: 20
close stale Python plugin fails to install dependencies for multiple extras of the same package in snapcraft. Issue is completely inactive for over 7 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 40
Confidence: 90
Support Request: 10
close stale Python plugin fails to install dependencies for multiple extras in python-packages, only installing the first extra's dependencies. Untriaged and inactive for over 7 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 40
Confidence: 80
Support Request: 10
close stale Bug report stating the snapcraft python plugin fails to install system dependencies for multiple extras on the same package. Issue is 7 years old with no maintainer activity or labels.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.