Skip to content

Using python -m venv for Venv Creation for UV Lock Scenarios#2829

Open
prathambande wants to merge 1 commit intomainfrom
dev/prathambande/uv-venv-fix
Open

Using python -m venv for Venv Creation for UV Lock Scenarios#2829
prathambande wants to merge 1 commit intomainfrom
dev/prathambande/uv-venv-fix

Conversation

@prathambande
Copy link
Collaborator

Currently, for pyproject.toml and uv.lock combination-based python oryx build, venv created is using uv venv. Venv created in such fashion has python bin in it as a symlink (Open Issue) which poses problems when transporting environments between build and runtime stages.

This PR fixes it by using python -m venv for venv creation instead.

Note: uv is still used for package installation for these scenarios (uv pip install, uv sync) when appropriate.

@prathambande prathambande requested a review from a team as a code owner March 12, 2026 11:02
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.

2 participants