acoustic-carpenter-78188
03/24/2026, 10:33 PM${VIRTUALENV:-/opt/venv} and ${UV_PYTHON:-/opt/venv/bin/python} ENV fallbacks with explicit ARG declarations, fixing BuildKit warnings about undefined variables
• Keep conditional virtualenv creation: only create a venv when the base image doesn't already provide UV_PYTHON
• Simplify the PATH update to always prepend $VIRTUALENV/bin (harmless no-op if base image provides its own)
Test plan
• Build a Docker image with default base and verify virtualenv is created at /opt/venv
• Build with a base image that sets ENV UV_PYTHON=... and verify venv creation is skipped
• Verify no BuildKit warnings about undefined variables during build
flyteorg/flyte-sdkacoustic-carpenter-78188
03/25/2026, 7:59 PM