@@ -45,6 +45,16 @@ commands:
4545 name: Install pkg-config
4646 command: HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config wget
4747 # Disable brew auto update which is very slow
48+ load_conda_channel_flags:
49+ description: "Determines whether we need extra conda channels"
50+ steps:
51+ - run:
52+ name: Adding CONDA_CHANNEL_FLAGS to BASH_ENV
53+ command: |
54+ CONDA_CHANNEL_FLAGS=""
55+ if [[ "${PYTHON_VERSION}" = *3.9* ]]; then
56+ echo "export CONDA_CHANNEL_FLAGS=-c=conda-forge" >> ${BASH_ENV}
57+ fi
4858
4959binary_common: &binary_common
5060 parameters:
@@ -117,7 +127,7 @@ jobs:
117127 binary_linux_wheel:
118128 <<: *binary_common
119129 docker:
120- - image: "pytorch/manylinux-cuda100 "
130+ - image: "pytorch/manylinux-cuda102 "
121131 resource_class: 2xlarge+
122132 steps:
123133 - checkout
@@ -138,6 +148,7 @@ jobs:
138148 resource_class: 2xlarge+
139149 steps:
140150 - checkout
151+ - load_conda_channel_flags
141152 - attach_workspace:
142153 at: third_party
143154 - run: packaging/build_conda.sh
@@ -155,6 +166,7 @@ jobs:
155166 steps:
156167 - checkout
157168 - install_build_tools_macos
169+ - load_conda_channel_flags
158170 - attach_workspace:
159171 at: third_party
160172 - run:
@@ -180,6 +192,7 @@ jobs:
180192 steps:
181193 - checkout
182194 - install_build_tools_macos
195+ - load_conda_channel_flags
183196 - attach_workspace:
184197 at: third_party
185198 - run:
@@ -202,6 +215,7 @@ jobs:
202215 name: windows-cpu
203216 steps:
204217 - checkout
218+ - load_conda_channel_flags
205219 - run:
206220 name: build
207221 command: |
@@ -221,6 +235,7 @@ jobs:
221235 name: windows-cpu
222236 steps:
223237 - checkout
238+ - load_conda_channel_flags
224239 - run:
225240 name: build
226241 command: |
@@ -278,6 +293,7 @@ jobs:
278293 - attach_workspace:
279294 at: ~/workspace
280295 - designate_upload_channel
296+ - load_conda_channel_flags
281297 - run:
282298 name: install binaries
283299 command: |
@@ -297,6 +313,7 @@ jobs:
297313 - attach_workspace:
298314 at: ~/workspace
299315 - designate_upload_channel
316+ - load_conda_channel_flags
300317 - run:
301318 name: install binaries
302319 command: |
@@ -317,6 +334,7 @@ jobs:
317334 - attach_workspace:
318335 at: ~/workspace
319336 - designate_upload_channel
337+ - load_conda_channel_flags
320338 - run:
321339 name: install binaries
322340 command: |
@@ -342,6 +360,7 @@ jobs:
342360 - attach_workspace:
343361 at: ~/workspace
344362 - designate_upload_channel
363+ - load_conda_channel_flags
345364 - run:
346365 name: install binaries
347366 command: |
@@ -395,6 +414,7 @@ jobs:
395414 - attach_workspace:
396415 at: third_party
397416 - designate_upload_channel
417+ - load_conda_channel_flags
398418 - run:
399419 name: Setup
400420 command: .circleci/unittest/linux/scripts/setup_env.sh
@@ -423,6 +443,7 @@ jobs:
423443 - attach_workspace:
424444 at: third_party
425445 - designate_upload_channel
446+ - load_conda_channel_flags
426447 - run:
427448 name: Pull Docker image
428449 command: docker pull --quiet "${image_name}"
@@ -431,7 +452,7 @@ jobs:
431452 command: docker run -t --gpus all -e PYTHON_VERSION -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/setup_env.sh
432453 - run:
433454 name: Install torchaudio
434- command: docker run -t --gpus all -e UPLOAD_CHANNEL -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/install.sh
455+ command: docker run -t --gpus all -e UPLOAD_CHANNEL -e CONDA_CHANNEL_FLAGS - v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/install.sh
435456 - run:
436457 name: Run tests
437458 command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh
@@ -448,6 +469,7 @@ jobs:
448469 steps:
449470 - checkout
450471 - designate_upload_channel
472+ - load_conda_channel_flags
451473 - run:
452474 name: Setup
453475 command: .circleci/unittest/windows/scripts/setup_env.sh
@@ -473,6 +495,7 @@ jobs:
473495 steps:
474496 - checkout
475497 - designate_upload_channel
498+ - load_conda_channel_flags
476499 - run:
477500 name: Setup
478501 command: .circleci/unittest/windows/scripts/setup_env.sh
@@ -496,6 +519,7 @@ jobs:
496519 steps:
497520 - checkout
498521 - install_build_tools_macos
522+ - load_conda_channel_flags
499523 - attach_workspace:
500524 at: third_party
501525 - designate_upload_channel
@@ -522,6 +546,7 @@ jobs:
522546 steps:
523547 - checkout
524548 - designate_upload_channel
549+ - load_conda_channel_flags
525550 - run:
526551 name: Setup
527552 command: .circleci/unittest/linux/scripts/setup_env.sh
@@ -538,6 +563,7 @@ jobs:
538563 - attach_workspace:
539564 at: ~/workspace
540565 - checkout
566+ - load_conda_channel_flags
541567 - run:
542568 name: Install pytorch-audio
543569 command: .circleci/build_docs/install_wheels.sh
0 commit comments