From f5dee909628e21507e3bb541a5df396a4c6c88dc Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Thu, 8 Jan 2026 22:48:03 +0100 Subject: [PATCH] chore(uv): add --index-strategy=unsafe-first-match to l4t (#7934) This is because the main index might not contain all the dependencies for torch Signed-off-by: Ettore Di Giacinto --- backend/python/chatterbox/install.sh | 8 ++++++++ backend/python/diffusers/install.sh | 7 +++++++ backend/python/kokoro/install.sh | 7 +++++++ backend/python/neutts/install.sh | 7 +++++++ backend/python/vibevoice/install.sh | 7 +++++++ 5 files changed, 36 insertions(+) diff --git a/backend/python/chatterbox/install.sh b/backend/python/chatterbox/install.sh index 8f607485b..5202f4403 100755 --- a/backend/python/chatterbox/install.sh +++ b/backend/python/chatterbox/install.sh @@ -15,6 +15,14 @@ fi if [ "x${BUILD_PROFILE}" == "xintel" ]; then EXTRA_PIP_INSTALL_FLAGS+=" --upgrade --index-strategy=unsafe-first-match" fi + +# This is here because the jetson-ai-lab.io PyPI mirror's root PyPI endpoint (pypi.jetson-ai-lab.io/root/pypi/) +# returns 503 errors when uv tries to fall back to it for packages not found in the specific subdirectory. +# We need uv to continue falling through to the official PyPI index when it encounters these errors. +if [ "x${BUILD_PROFILE}" == "xl4t12" ] || [ "x${BUILD_PROFILE}" == "xl4t13" ]; then + EXTRA_PIP_INSTALL_FLAGS+=" --index-strategy=unsafe-first-match" +fi + EXTRA_PIP_INSTALL_FLAGS+=" --no-build-isolation" installRequirements diff --git a/backend/python/diffusers/install.sh b/backend/python/diffusers/install.sh index 2e437de08..f2af05388 100755 --- a/backend/python/diffusers/install.sh +++ b/backend/python/diffusers/install.sh @@ -23,4 +23,11 @@ if [ "x${BUILD_PROFILE}" == "xl4t13" ]; then PY_STANDALONE_TAG="20251120" fi +# This is here because the jetson-ai-lab.io PyPI mirror's root PyPI endpoint (pypi.jetson-ai-lab.io/root/pypi/) +# returns 503 errors when uv tries to fall back to it for packages not found in the specific subdirectory. +# We need uv to continue falling through to the official PyPI index when it encounters these errors. +if [ "x${BUILD_PROFILE}" == "xl4t12" ] || [ "x${BUILD_PROFILE}" == "xl4t13" ]; then + EXTRA_PIP_INSTALL_FLAGS+=" --index-strategy=unsafe-first-match" +fi + installRequirements diff --git a/backend/python/kokoro/install.sh b/backend/python/kokoro/install.sh index 32befa8e6..a34ef188e 100755 --- a/backend/python/kokoro/install.sh +++ b/backend/python/kokoro/install.sh @@ -16,4 +16,11 @@ if [ "x${BUILD_PROFILE}" == "xintel" ]; then EXTRA_PIP_INSTALL_FLAGS+=" --upgrade --index-strategy=unsafe-first-match" fi +# This is here because the jetson-ai-lab.io PyPI mirror's root PyPI endpoint (pypi.jetson-ai-lab.io/root/pypi/) +# returns 503 errors when uv tries to fall back to it for packages not found in the specific subdirectory. +# We need uv to continue falling through to the official PyPI index when it encounters these errors. +if [ "x${BUILD_PROFILE}" == "xl4t12" ] || [ "x${BUILD_PROFILE}" == "xl4t13" ]; then + EXTRA_PIP_INSTALL_FLAGS+=" --index-strategy=unsafe-first-match" +fi + installRequirements diff --git a/backend/python/neutts/install.sh b/backend/python/neutts/install.sh index 886f931ee..2d4fdd734 100755 --- a/backend/python/neutts/install.sh +++ b/backend/python/neutts/install.sh @@ -16,6 +16,13 @@ if [ "x${BUILD_PROFILE}" == "xintel" ]; then EXTRA_PIP_INSTALL_FLAGS+=" --upgrade --index-strategy=unsafe-first-match" fi +# This is here because the jetson-ai-lab.io PyPI mirror's root PyPI endpoint (pypi.jetson-ai-lab.io/root/pypi/) +# returns 503 errors when uv tries to fall back to it for packages not found in the specific subdirectory. +# We need uv to continue falling through to the official PyPI index when it encounters these errors. +if [ "x${BUILD_PROFILE}" == "xl4t12" ] || [ "x${BUILD_PROFILE}" == "xl4t13" ]; then + EXTRA_PIP_INSTALL_FLAGS+=" --index-strategy=unsafe-first-match" +fi + if [ "x${BUILD_TYPE}" == "xcublas" ] || [ "x${BUILD_TYPE}" == "xl4t" ]; then export CMAKE_ARGS="-DGGML_CUDA=on" fi diff --git a/backend/python/vibevoice/install.sh b/backend/python/vibevoice/install.sh index 89d9b715e..6f539b169 100755 --- a/backend/python/vibevoice/install.sh +++ b/backend/python/vibevoice/install.sh @@ -23,6 +23,13 @@ if [ "x${BUILD_PROFILE}" == "xl4t13" ]; then PY_STANDALONE_TAG="20251120" fi +# This is here because the jetson-ai-lab.io PyPI mirror's root PyPI endpoint (pypi.jetson-ai-lab.io/root/pypi/) +# returns 503 errors when uv tries to fall back to it for packages not found in the specific subdirectory. +# We need uv to continue falling through to the official PyPI index when it encounters these errors. +if [ "x${BUILD_PROFILE}" == "xl4t12" ] || [ "x${BUILD_PROFILE}" == "xl4t13" ]; then + EXTRA_PIP_INSTALL_FLAGS+=" --index-strategy=unsafe-first-match" +fi + installRequirements git clone https://github.com/microsoft/VibeVoice.git