Unverified Commit e83d557a authored by Eli Uriegas's avatar Eli Uriegas Committed by GitHub
Browse files

.circleci: Let numpy get installed as dependency (#1309)



Numpy is a dependency of pytorch so we should let it get resolved as it
install pytorch
Signed-off-by: default avatarEli Uriegas <eliuriegas@fb.com>
parent 3a055b55
...@@ -36,7 +36,6 @@ fi ...@@ -36,7 +36,6 @@ fi
printf "Installing PyTorch with %s\n" "${cudatoolkit}" printf "Installing PyTorch with %s\n" "${cudatoolkit}"
( (
set -x set -x
conda install ${CONDA_CHANNEL_FLAGS:-} -y defaults::numpy
conda install ${CONDA_CHANNEL_FLAGS:-} -y -c "pytorch-${UPLOAD_CHANNEL}" "pytorch-${UPLOAD_CHANNEL}::pytorch" ${cudatoolkit} conda install ${CONDA_CHANNEL_FLAGS:-} -y -c "pytorch-${UPLOAD_CHANNEL}" "pytorch-${UPLOAD_CHANNEL}::pytorch" ${cudatoolkit}
) )
......
...@@ -37,9 +37,3 @@ if [ ! -d "${env_dir}" ]; then ...@@ -37,9 +37,3 @@ if [ ! -d "${env_dir}" ]; then
conda create --prefix "${env_dir}" -y python="${PYTHON_VERSION}" conda create --prefix "${env_dir}" -y python="${PYTHON_VERSION}"
fi fi
conda activate "${env_dir}" conda activate "${env_dir}"
NUMPY_PIN="1.11"
if [[ "${PYTHON_VERSION}" = "3.9" ]]; then
NUMPY_PIN="1.20"
fi
printf "* Installing numpy>=%s\n" "${NUMPY_PIN}\n"
conda install -y -c conda-forge numpy>="${NUMPY_PIN}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment