|
38 | 38 | run: | |
39 | 39 | find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \; |
40 | 40 | python -m pip install --upgrade pip wheel |
41 | | - python -m pip install -r requirements-dev.txt |
| 41 | + python -m pip install --no-build-isolation -r requirements-dev.txt |
42 | 42 | - name: Lint and type check |
43 | 43 | run: | |
44 | 44 | # clean up temporary files |
@@ -85,14 +85,14 @@ jobs: |
85 | 85 | python -m pip install --user --upgrade pip wheel |
86 | 86 | python -m pip install torch==2.5.1 torchvision==0.20.1 |
87 | 87 | cat "requirements-dev.txt" |
88 | | - python -m pip install -r requirements-dev.txt |
| 88 | + python -m pip install --no-build-isolation -r requirements-dev.txt |
89 | 89 | python -m pip list |
90 | | - python setup.py develop # test no compile installation |
| 90 | + python -m pip install -e . # test no compile installation |
91 | 91 | shell: bash |
92 | 92 | - name: Run compiled (${{ runner.os }}) |
93 | 93 | run: | |
94 | | - python setup.py develop --uninstall |
95 | | - BUILD_MONAI=1 python setup.py develop # compile the cpp extensions |
| 94 | + python -m pip uninstall -y monai |
| 95 | + BUILD_MONAI=1 python -m pip install -e . # compile the cpp extensions |
96 | 96 | shell: bash |
97 | 97 | - name: Run quick tests (CPU ${{ runner.os }}) |
98 | 98 | run: | |
@@ -174,7 +174,7 @@ jobs: |
174 | 174 | cp ${{ steps.root.outputs.pwd }}/requirements*.txt . |
175 | 175 | cp -r ${{ steps.root.outputs.pwd }}/tests . |
176 | 176 | ls -al |
177 | | - python -m pip install -r requirements-dev.txt --extra-index-url https://download.pytorch.org/whl/cpu |
| 177 | + python -m pip install --no-build-isolation -r requirements-dev.txt --extra-index-url https://download.pytorch.org/whl/cpu |
178 | 178 | python -m unittest -v |
179 | 179 | env: |
180 | 180 | PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: python # https://github.com/Project-MONAI/MONAI/issues/4354 |
|
0 commit comments