Skip to content

Commit 123270c

Browse files
committed
cleanup
1 parent 45276dd commit 123270c

File tree

4 files changed

+38
-16
lines changed

4 files changed

+38
-16
lines changed

.circleci/config.yml

Lines changed: 14 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/config.yml.in

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,24 @@ commands:
144144
editable:
145145
type: boolean
146146
default: true
147+
optional_dependencies:
148+
type: boolean
149+
default: true
147150
steps:
148151
- pip_install:
149-
args: --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
150152
descr: Install PyTorch from nightly releases
153+
args: --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
154+
151155
- 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+
154165

155166
install_prototype_dependencies:
156167
steps:
@@ -350,9 +361,6 @@ jobs:
350361
| parallel -j0 'wget --no-verbose -O ~/.cache/torch/hub/checkpoints/`basename {}` {}\?source=ci'
351362
- install_torchvision
352363
- install_prototype_dependencies
353-
- pip_install:
354-
args: scipy pycocotools
355-
descr: Install optional dependencies
356364
- run:
357365
name: Enable prototype tests
358366
command: echo 'export PYTORCH_TEST_WITH_PROTOTYPE=1' >> $BASH_ENV

.circleci/unittest/linux/scripts/install.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,8 @@ if [ $PYTHON_VERSION == "3.6" ]; then
4242
pip install "pillow>=5.3.0,!=8.3.*"
4343
fi
4444

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

.circleci/unittest/windows/scripts/install.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,8 @@ fi
4848

4949
source "$this_dir/set_cuda_envs.sh"
5050

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

0 commit comments

Comments
 (0)