File tree Expand file tree Collapse file tree 4 files changed +38
-16
lines changed Expand file tree Collapse file tree 4 files changed +38
-16
lines changed Original file line number Diff line number Diff line change @@ -144,13 +144,24 @@ commands:
144
144
editable:
145
145
type: boolean
146
146
default: true
147
+ optional_dependencies:
148
+ type: boolean
149
+ default: true
147
150
steps:
148
151
- pip_install:
149
- args: --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
150
152
descr: Install PyTorch from nightly releases
153
+ args: --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
154
+
151
155
- pip_install:
152
- args: --no-build-isolation <<# parameters.editable >> --editable <</ parameters.editable >> .
153
- descr: Install torchvision <<# parameters.editable >> in editable mode <</ parameters.editable >>
156
+ descr: >
157
+ Install torchvision
158
+ <<# parameters.editable >> in editable mode <</ parameters.editable >>
159
+ <<# parameters.optional_dependencies >> with optional dependencies <</ parameters.optional_dependencies >>
160
+ args: >
161
+ --no-build-isolation
162
+ <<# parameters.editable >> --editable <</ parameters.editable >>
163
+ .<<# parameters.optional_dependencies >>[all]<</ parameters.optional_dependencies >>
164
+
154
165
155
166
install_prototype_dependencies:
156
167
steps:
@@ -350,9 +361,6 @@ jobs:
350
361
| parallel -j0 'wget --no-verbose -O ~/.cache/torch/hub/checkpoints/`basename {}` {}\?source=ci'
351
362
- install_torchvision
352
363
- install_prototype_dependencies
353
- - pip_install:
354
- args: scipy pycocotools
355
- descr: Install optional dependencies
356
364
- run:
357
365
name: Enable prototype tests
358
366
command: echo 'export PYTORCH_TEST_WITH_PROTOTYPE=1' >> $BASH_ENV
Original file line number Diff line number Diff line change @@ -42,5 +42,8 @@ if [ $PYTHON_VERSION == "3.6" ]; then
42
42
pip install " pillow>=5.3.0,!=8.3.*"
43
43
fi
44
44
45
- printf " * Installing torchvision and all optional dependencies\n"
46
- python setup.py develop easy_install torchvision[all]
45
+ printf " * Installing optional dependencies\n"
46
+ pip install -r optional-requirements.txt
47
+
48
+ printf " * Installing torchvision\n"
49
+ python setup.py develop
Original file line number Diff line number Diff line change 48
48
49
49
source " $this_dir /set_cuda_envs.sh"
50
50
51
- printf " * Installing torchvision and all optional dependencies\n"
52
- " $this_dir /vc_env_helper.bat" python setup.py develop easy_install torchvision[all]
51
+ printf " * Installing optional dependencies\n"
52
+ pip install -r optional-requirements.txt
53
+
54
+ printf " * Installing torchvision\n"
55
+ " $this_dir /vc_env_helper.bat" python setup.py develop
You can’t perform that action at this time.
0 commit comments