From b529e518bea5b7dc58e5baf18e068470af9c57ce Mon Sep 17 00:00:00 2001 From: Manuel Candales Date: Fri, 13 Mar 2026 15:18:11 -0400 Subject: [PATCH] use --no-cache-dir in install_requirements --- install_requirements.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install_requirements.py b/install_requirements.py index d5371d09a5b..a113f0d7e3b 100644 --- a/install_requirements.py +++ b/install_requirements.py @@ -55,12 +55,14 @@ def install_requirements(use_pytorch_nightly): # Install the requirements for core ExecuTorch package. # `--extra-index-url` tells pip to look for package # versions on the provided URL if they aren't available on the default URL. + # Use --no-cache-dir to avoid stale cache issues with mutable test wheels. subprocess.run( [ sys.executable, "-m", "pip", "install", + "--no-cache-dir", "-r", "requirements-dev.txt", *TORCH_PACKAGE, @@ -122,6 +124,7 @@ def install_optional_example_requirements(use_pytorch_nightly): "-m", "pip", "install", + "--no-cache-dir", *DOMAIN_LIBRARIES, "--extra-index-url", torch_url,