Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: fix venv creating for the local Python using uv #129094

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

FFY00
Copy link
Member

@FFY00 FFY00 commented Jan 20, 2025

GH-120711 introduced uv as an alternative venv provisioning and method, but failed to honor the PYTHON variable, leading uv to the system's default Python installation. Honoring PYTHON is important for use cases such as doctest, which should run with the locally built Python.


📚 Documentation preview 📚: https://cpython-previews--129094.org.readthedocs.build/

pythonGH-120711 introduced uv as an alternative venv provisioning and method,
but failed to honor the `PYTHON` variable, leading uv to the system's
default Python installation. Honoring `PYTHON` is important for use
cases such as `doctest`, which should run with the locally built Python.

Signed-off-by: Filipe Laíns <lains@riseup.net>
@hugovk
Copy link
Member

hugovk commented Jan 20, 2025

Thanks, we should make the same change to the Makefile in the devguide, docs-community and peps repos.

@hugovk hugovk merged commit da36bcc into python:main Jan 20, 2025
35 checks passed
@miss-islington-app
Copy link

Thanks @FFY00 for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 20, 2025
(cherry picked from commit da36bcc)

Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 20, 2025
(cherry picked from commit da36bcc)

Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
@bedevere-app
Copy link

bedevere-app bot commented Jan 20, 2025

GH-129096 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jan 20, 2025
@bedevere-app
Copy link

bedevere-app bot commented Jan 20, 2025

GH-129097 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Jan 20, 2025
hugovk pushed a commit that referenced this pull request Jan 20, 2025
… (#129096)

Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
hugovk pushed a commit that referenced this pull request Jan 20, 2025
… (#129097)

Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants