Skip to content

Add comment explaining two-step dependency installation in GitHub #20996

Open
dhanusharer wants to merge 1 commit intopython:masterfrom
dhanusharer:docs-action-install-comment
Open

Add comment explaining two-step dependency installation in GitHub #20996
dhanusharer wants to merge 1 commit intopython:masterfrom
dhanusharer:docs-action-install-comment

Conversation

@dhanusharer
Copy link

@dhanusharer dhanusharer commented Mar 9, 2026

This PR adds a short comment explaining why the GitHub Action installs
dependencies using a two-step process (pip download followed by
pip install --find-links) instead of using pip install . directly.

Downloading dependencies first allows installation from local artifacts,
which improves reproducibility in CI environments and can make debugging
dependency resolution issues easier.
Closes #20990

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@dhanusharer dhanusharer changed the title Add comment explaining two-step dependency installation in GitHub Action Add comment explaining two-step dependency installation in GitHub Mar 9, 2026
@A5rocks
Copy link
Collaborator

A5rocks commented Mar 10, 2026

How does this improve reproducibility? This gets executed per run...?

How does this improve debugging of deps? Does pip download not just result in a wheel, which has exactly the same files within as what eventually gets installed...?

@wyattscarpenter
Copy link
Contributor

If you ask an LLM to explain the reason behind something, it will just make something up 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Why the GitHub Action installs project dependencies via pip download + pip install --find-links

3 participants