Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Oct 9, 2023
1 parent 286c967 commit a78321b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .circleci/unittest/linux/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ unset PYTORCH_VERSION

set -e

#eval "$(./conda/bin/conda shell.bash hook)"
#conda activate ./env
eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env

if [ "${CU_VERSION:-}" == cpu ] ; then
echo "Using cpu build"
Expand Down
4 changes: 2 additions & 2 deletions .circleci/unittest/linux/scripts/post_process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

set -e

#eval "$(./conda/bin/conda shell.bash hook)"
#conda activate ./env
eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env
4 changes: 2 additions & 2 deletions .circleci/unittest/linux/scripts/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

set -e

#eval "$(./conda/bin/conda shell.bash hook)"
#conda activate ./env
eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env

export PYTORCH_TEST_WITH_SLOW='1'
python -m torch.utils.collect_env
Expand Down
32 changes: 16 additions & 16 deletions .circleci/unittest/linux/scripts/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# Avoid error: "fatal: unsafe repository"
git config --global --add safe.directory '*'
root_dir="$(git rev-parse --show-toplevel)"
#conda_dir="${root_dir}/conda"
conda_dir="${root_dir}/conda"
env_dir="${root_dir}/env"

cd "${root_dir}"
Expand All @@ -23,21 +23,21 @@ case "$(uname -s)" in
*) os=Linux
esac

## 1. Install conda at ./conda
#if [ ! -d "${conda_dir}" ]; then
# printf "* Installing conda\n"
# wget -O miniconda.sh "http://repo.continuum.io/miniconda/Miniconda3-latest-${os}-x86_64.sh"
# bash ./miniconda.sh -b -f -p "${conda_dir}"
#fi
#eval "$(${conda_dir}/bin/conda shell.bash hook)"

## 2. Create test environment at ./env
#printf "python: ${PYTHON_VERSION}\n"
#if [ ! -d "${env_dir}" ]; then
# printf "* Creating a test environment\n"
# conda create --prefix "${env_dir}" -y python="$PYTHON_VERSION"
#fi
#conda activate "${env_dir}"
# 1. Install conda at ./conda
if [ ! -d "${conda_dir}" ]; then
printf "* Installing conda\n"
wget -O miniconda.sh "http://repo.continuum.io/miniconda/Miniconda3-latest-${os}-x86_64.sh"
bash ./miniconda.sh -b -f -p "${conda_dir}"
fi
eval "$(${conda_dir}/bin/conda shell.bash hook)"

# 2. Create test environment at ./env
printf "python: ${PYTHON_VERSION}\n"
if [ ! -d "${env_dir}" ]; then
printf "* Creating a test environment\n"
conda create --prefix "${env_dir}" -y python="$PYTHON_VERSION"
fi
conda activate "${env_dir}"

# 3. Install Conda dependencies
printf "* Installing dependencies (except PyTorch)\n"
Expand Down

0 comments on commit a78321b

Please sign in to comment.