diff --git a/backend/windmill-worker/nsjail/download_deps.py.sh b/backend/windmill-worker/nsjail/download_deps.py.sh index 2a63fc482b..c17a8ceea8 100755 --- a/backend/windmill-worker/nsjail/download_deps.py.sh +++ b/backend/windmill-worker/nsjail/download_deps.py.sh @@ -20,12 +20,13 @@ then fi CMD="/usr/local/bin/uv pip install --v \"$REQ\" +\"$REQ\" --target \"$TARGET\" --no-cache --no-config --no-color --no-deps +--link-mode=copy -p 3.11 $INDEX_URL_ARG $EXTRA_INDEX_URL_ARG $TRUSTED_HOST_ARG --index-strategy unsafe-best-match diff --git a/backend/windmill-worker/src/python_executor.rs b/backend/windmill-worker/src/python_executor.rs index 7f579abbaa..e0f8912807 100644 --- a/backend/windmill-worker/src/python_executor.rs +++ b/backend/windmill-worker/src/python_executor.rs @@ -1246,6 +1246,7 @@ pub async fn handle_python_reqs( "3.11", // Prevent uv from discovering configuration files. "--no-config", + "--link-mode=copy", // TODO: Doublecheck it "--system", // Prefer main index over extra