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

Commit 3e7a856

Browse files
authored
Undo using conda activate (#1487)
1 parent c8a0379 commit 3e7a856

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conda/build_pytorch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ for py_ver in "${DESIRED_PYTHON[@]}"; do
364364
# TODO these reqs are hardcoded for pytorch-nightly
365365
test_env="env_$folder_tag"
366366
retry conda create -yn "$test_env" python="$py_ver"
367-
conda activate "$test_env"
367+
source activate "$test_env"
368368

369369
# Extract the package for testing
370370
ls -lah "$output_folder"
@@ -408,7 +408,7 @@ for py_ver in "${DESIRED_PYTHON[@]}"; do
408408
fi
409409

410410
# Clean up test folder
411-
conda deactivate
411+
source deactivate
412412
conda env remove -yn "$test_env"
413413
rm -rf "$output_folder"
414414
done

0 commit comments

Comments
 (0)