From fefc4efb054bd9640404b0f4aa034a910ede53f0 Mon Sep 17 00:00:00 2001 From: Nikita Shulga Date: Wed, 24 Nov 2021 10:53:22 -0800 Subject: [PATCH] Add numpy as explicit dependency to build_cmake.sh Otherwise, it `setuptools.py` will try to install latest, which is not compatible with Python runtime older than 3.8 Fixes https://github.com/pytorch/vision/issues/4985 --- packaging/build_cmake.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/build_cmake.sh b/packaging/build_cmake.sh index ebcee13d18d..2ba5f3e10e4 100755 --- a/packaging/build_cmake.sh +++ b/packaging/build_cmake.sh @@ -42,7 +42,7 @@ else PYTORCH_MUTEX_CONSTRAINT='' fi -conda install -yq \pytorch=$PYTORCH_VERSION $CONDA_CUDATOOLKIT_CONSTRAINT $PYTORCH_MUTEX_CONSTRAINT $MKL_CONSTRAINT -c "pytorch-${UPLOAD_CHANNEL}" +conda install -yq \pytorch=$PYTORCH_VERSION $CONDA_CUDATOOLKIT_CONSTRAINT $PYTORCH_MUTEX_CONSTRAINT $MKL_CONSTRAINT numpy -c "pytorch-${UPLOAD_CHANNEL}" TORCH_PATH=$(dirname $(python -c "import torch; print(torch.__file__)")) if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" ]]; then