Skip to content

Commit 26e4035

Browse files
committed
.circleci: Update to install from correct channels
Signed-off-by: Eli Uriegas <[email protected]>
1 parent ba3110b commit 26e4035

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.circleci/config.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,7 @@ commands:
3535
- run:
3636
name: adding UPLOAD_CHANNEL to BASH_ENV
3737
command: |
38-
our_upload_channel=nightly
39-
# On tags upload to test instead
40-
if [[ -n "${CIRCLE_TAG}" ]]; then
41-
our_upload_channel=test
42-
fi
43-
echo "export UPLOAD_CHANNEL=${our_upload_channel}" >> ${BASH_ENV}
38+
echo "export UPLOAD_CHANNEL=test" >> ${BASH_ENV}
4439
4540
binary_common: &binary_common
4641
parameters:

packaging/pkg_helpers.bash

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ setup_pip_pytorch_version() {
216216
export PYTORCH_VERSION="$(pip show torch | grep ^Version: | sed 's/Version: *//')"
217217
fi
218218
else
219+
UPLOAD_CHANNEL=${UPLOAD_CHANNEL:-nightly}
219220
pip_install "torch==$PYTORCH_VERSION$PYTORCH_VERSION_SUFFIX" \
220-
-f https://download.pytorch.org/whl/torch_stable.html \
221-
-f https://download.pytorch.org/whl/test/torch_test.html \
222-
-f https://download.pytorch.org/whl/nightly/torch_nightly.html
221+
-f "https://download.pytorch.org/whl/${CU_VERSION}/torch_stable.html" \
222+
-f "https://download.pytorch.org/whl/${UPLOAD_CHANNEL}/${CU_VERSION}/torch_${UPLOAD_CHANNEL}.html"
223223
fi
224224
}
225225

@@ -244,7 +244,8 @@ setup_conda_pytorch_constraint() {
244244
exit 1
245245
fi
246246
else
247-
export CONDA_CHANNEL_FLAGS="-c pytorch -c pytorch-nightly -c pytorch-test"
247+
UPLOAD_CHANNEL=${UPLOAD_CHANNEL:-nightly}
248+
export CONDA_CHANNEL_FLAGS="-c pytorch -c pytorch-${UPLOAD_CHANNEL}"
248249
fi
249250
if [[ "$CU_VERSION" == cpu ]]; then
250251
export CONDA_PYTORCH_BUILD_CONSTRAINT="- pytorch==$PYTORCH_VERSION${PYTORCH_VERSION_SUFFIX}"

0 commit comments

Comments
 (0)