Skip to content

Commit 0b51c4f

Browse files
committed
Mitigate windows nightly build regressions
By pinning conda to 22.9.0 Fixes pytorch/pytorch#90059
1 parent 9cdb934 commit 0b51c4f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

conda/build_pytorch.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,13 +342,14 @@ for py_ver in "${DESIRED_PYTHON[@]}"; do
342342
# Build the package
343343
echo "Build $build_folder for Python version $py_ver"
344344
conda config --set anaconda_upload no
345-
conda install -y conda-package-handling
346-
# NS: To be removed after conda docker images are updated
347-
conda update -y conda-build
345+
conda install -y conda-package-handling conda==22.9.0
348346

349347
if [[ "$OSTYPE" == "msys" ]]; then
350348
# Don't run tests on windows (they were ignored mostly anyways)
351349
NO_TEST="--no-test"
350+
else
351+
# NS: To be removed after conda docker images are updated
352+
conda update -y conda-build
352353
fi
353354

354355
echo "Calling conda-build at $(date)"

0 commit comments

Comments
 (0)