Skip to content

add support for installing system-level venv in ImageSpec#3400

Open
cosmicBboy wants to merge 1 commit intomasterfrom
nielsb/fix-image-python-exec
Open

add support for installing system-level venv in ImageSpec#3400
cosmicBboy wants to merge 1 commit intomasterfrom
nielsb/fix-image-python-exec

Conversation

@cosmicBboy
Copy link
Contributor

Tracking issue

Why are the changes needed?

What changes were proposed in this pull request?

How was this patch tested?

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
# When python_exec points to system Python (e.g. on NVIDIA base images), PEP 668 prevents
# installing packages directly. We create a venv using the base Python and install into it.
# --system-site-packages lets the venv see base image packages (e.g. NVIDIA TensorRT).
UV_PYTHON_VENV_INSTALL_COMMAND_TEMPLATE = Template(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change the existing template instead of adding a new one?

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