fix(standalone): pass --python to uv pip install to target project venv#2029
Merged
jeremybeard merged 1 commit intomainfrom Mar 6, 2026
Merged
fix(standalone): pass --python to uv pip install to target project venv#2029jeremybeard merged 1 commit intomainfrom
jeremybeard merged 1 commit intomainfrom
Conversation
Pull Request Test Coverage Report for Build 1f89c2ab-978a-4c1c-a672-d0961ec29850Details
💛 - Coveralls |
When the CLI is launched from inside an activated venv (e.g. via `uv run`), the inherited VIRTUAL_ENV env var causes `uv pip install` to target the parent venv instead of the project's .venv, leaving .venv/bin/airflow missing. Pass --python .venv/bin/python explicitly to uv pip install commands so they always install into the project venv regardless of the parent environment. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
f2d1f16 to
bfb2f34
Compare
jlaneve
approved these changes
Mar 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
uv run), the inheritedVIRTUAL_ENVenv var causesuv pip installto target the parent venv instead of the project's.venv/, leaving.venv/bin/airflowmissing--python .venv/bin/pythonexplicitly to bothuv pip installcommands so they always install into the project venv regardless of the parent environmentTest plan
./airflow/test suite passesVIRTUAL_ENV=/fake astro dev start --standalonesucceeds,.venv/bin/airflowexists in project venv🤖 Generated with Claude Code