Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 4d88d4e

Browse files
authored
Revert "[CI] Fix upload channel (#1932)" (#1939)
This reverts commit 0026773.
1 parent c776dc1 commit 4d88d4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packaging/pkg_helpers.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,13 @@ setup_pip_pytorch_version() {
200200
setup_conda_pytorch_constraint() {
201201
CONDA_CHANNEL_FLAGS=${CONDA_CHANNEL_FLAGS:-}
202202
if [[ -z "$PYTORCH_VERSION" ]]; then
203-
export CONDA_CHANNEL_FLAGS="${CONDA_CHANNEL_FLAGS} -c pytorch-${UPLOAD_CHANNEL}"
203+
export CONDA_CHANNEL_FLAGS="${CONDA_CHANNEL_FLAGS} -c pytorch-nightly"
204204
PYTHON="python"
205205
# Check if we have python 3 instead and prefer that
206206
if python3 --version >/dev/null 2>/dev/null; then
207207
PYTHON="python3"
208208
fi
209-
export PYTORCH_VERSION="$(conda search --json pytorch[channel=pytorch-${UPLOAD_CHANNEL}] | ${PYTHON} -c "import sys, json, re; print(re.sub(r'\\+.*$', '', json.load(sys.stdin)['pytorch'][-1]['version']))")"
209+
export PYTORCH_VERSION="$(conda search --json 'pytorch[channel=pytorch-nightly]' | ${PYTHON} -c "import sys, json, re; print(re.sub(r'\\+.*$', '', json.load(sys.stdin)['pytorch'][-1]['version']))")"
210210
else
211211
export CONDA_CHANNEL_FLAGS="${CONDA_CHANNEL_FLAGS} -c pytorch -c pytorch-${UPLOAD_CHANNEL}"
212212
fi

0 commit comments

Comments
 (0)