tl_jacob
tl_jacob2d ago

Pass environment variables to `uv pip install`

I am installing a python package from a private repository and I need the uv pip install process to have access to the SSH_AUTH_SOCK environment variable. Unfortunately it looks like looks like env vars are cleared before uv pip install (ref) . Would it be possible to expose some configuration to allow custom envars to be passed during env instantiation (i.e. uv pip install) / prevent the env clean in the first place? Is there another approach that I am missing?
GitHub
windmill/backend/windmill-worker/src/python_executor.rs at 697f6605...
Open-source developer platform to power your entire infra and turn scripts into webhooks, workflows and UIs. Fastest workflow engine (13x vs Airflow). Open-source alternative to Retool and Temporal...
2 Replies
rubenf
rubenf2d ago
we could support it but only as an env var to windmill that would configure how we do uv pip install
tl_jacob
tl_jacobOP2d ago
@rubenf sounds good! as in there would be a flag that controls whether the env is cleared for the uv pip install process?

Did you find this page helpful?