From fc03781c3c8a21bac0d84d8f422a031f127bfdb7 Mon Sep 17 00:00:00 2001
From: Rosie Wood <rwood@turing.ac.uk>
Date: Wed, 23 Oct 2024 09:12:48 +0100
Subject: [PATCH] try with no build isolation

---
 .github/workflows/mr_ci_text_spotting.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/mr_ci_text_spotting.yml b/.github/workflows/mr_ci_text_spotting.yml
index e5588a6a..ccde8b16 100644
--- a/.github/workflows/mr_ci_text_spotting.yml
+++ b/.github/workflows/mr_ci_text_spotting.yml
@@ -106,7 +106,7 @@ jobs:
         run: |
           python -m pip install wheel ninja opencv-python-headless onnx pytest-xdist
           python -m pip install numpy==1.26.4
-          python -m pip install torch==2.2.2 torchvision==0.17.2
+          python -m pip install torch==2.2.2 torchvision==0.17.2 -f https://download.pytorch.org/whl/torch_stable.html
           # install from github to get latest; install iopath first since fvcore depends on it
           python -m pip install -U 'git+https://github.com/facebookresearch/iopath'
           python -m pip install -U 'git+https://github.com/facebookresearch/fvcore'
@@ -115,7 +115,7 @@ jobs:
 
       - name: Build and install
         run: |
-          python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
+          python -m pip install --no-build-isolation 'git+https://github.com/facebookresearch/detectron2.git'
           python -m detectron2.utils.collect_env
           python -m pip install ".[dev]"