Skip to content

Commit

Permalink
Undo using conda activate (#1487)
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman committed Aug 16, 2023
1 parent c8a0379 commit 3e7a856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda/build_pytorch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ for py_ver in "${DESIRED_PYTHON[@]}"; do
# TODO these reqs are hardcoded for pytorch-nightly
test_env="env_$folder_tag"
retry conda create -yn "$test_env" python="$py_ver"
conda activate "$test_env"
source activate "$test_env"

# Extract the package for testing
ls -lah "$output_folder"
Expand Down Expand Up @@ -408,7 +408,7 @@ for py_ver in "${DESIRED_PYTHON[@]}"; do
fi

# Clean up test folder
conda deactivate
source deactivate
conda env remove -yn "$test_env"
rm -rf "$output_folder"
done
Expand Down

0 comments on commit 3e7a856

Please sign in to comment.