← Back to issue list

python plugin: first try processing setup.py without PyPI

View original Github issue

Metadata

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

Current evaluation

Merged in #2771 via commit 9bac0fd64: the Python plugin resolves setup.py dependencies from python-packages and requirements first, then falls back to PyPI.

Resolution: closed resolved

Reason: PR #2771 was merged as commit 9bac0fd64, implementing local dependency resolution before the existing PyPI fallback.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Try to install setup.py with dependencies satisfied from: - python-packages - requirements If that fails, resort to using PyPI to satisfy missing install_requires from setup.py LP: #1841861 Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged in #2771 via commit 9bac0fd64: the Python plugin resolves setup.py dependencies from python-packages and requirements first, then falls back to PyPI.
stealth/space-bunny-alpha — closed resolved Merged PR #2771, commit 9bac0fd64: the Python plugin now resolves setup.py dependencies from python-packages and requirements before falling back to PyPI.
qwen/qwen3.6-35b-a3b — — Merged. Updates the Python plugin to resolve setup.py dependencies from python-packages and requirements first, falling back to PyPI only if needed. Approved after validation with Certbot and unit tests. Resolves LP #1841861.
qwen3.6-35b-a3b-mtp-q6 — — Merged after Certbot testing and cleanup. The Python plugin now prioritizes local dependencies from python-packages and requirements over PyPI when processing setup.py, falling back to PyPI only if necessary. Resolves LP #1841861.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft#2409 (confidence 85%)

    Earlier merged work separated dependency processing from setup.py processing.

Related issues

Issue Project State Summary Similarity
#2409 python plugin: process deps before and separately from setup.py snapcraft merged Merged PR #2409 in commit 6c8cb57b4, separating dependency processing from setup.py handling and excluding setup.py from the download phase.
74%