Skip to content

Commit 73efcc6

Browse files
datumboxmalfet
andauthored
Add numpy as explicit dependency to build_cmake.sh (#4987) (#5065)
Otherwise, it `setuptools.py` will try to install latest, which is not compatible with Python runtime older than 3.8 Fixes #4985 Co-authored-by: Nikita Shulga <[email protected]>
1 parent 0cac420 commit 73efcc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packaging/build_cmake.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ else
3636
MKL_CONSTRAINT=''
3737
fi
3838

39-
conda install -yq \pytorch=$PYTORCH_VERSION $CONDA_CUDATOOLKIT_CONSTRAINT $CONDA_CPUONLY_FEATURE $MKL_CONSTRAINT -c "pytorch-${UPLOAD_CHANNEL}"
39+
conda install -yq \pytorch=$PYTORCH_VERSION $CONDA_CUDATOOLKIT_CONSTRAINT $CONDA_CPUONLY_FEATURE $MKL_CONSTRAINT numpy -c "pytorch-${UPLOAD_CHANNEL}"
4040
TORCH_PATH=$(dirname $(python -c "import torch; print(torch.__file__)"))
4141

4242
if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" ]]; then

0 commit comments

Comments
 (0)