Pin beartype version (#17599)

PyTorch doesn't like the latest beartype:
https://github.com/pytorch/pytorch/pull/109510
This commit is contained in:
Wei-Sheng Chin 2023-09-18 19:31:04 -07:00 committed by GitHub
parent d350ab31d7
commit 068300d97e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,10 @@ export ONNX_ML=1
export CMAKE_ARGS="-DONNX_GEN_PB_TYPE_STUBS=OFF -DONNX_WERROR=OFF"
/opt/python/cp39-cp39/bin/python3.9 -m pip install transformers
# beartype is installed here so that onnxscript installation step won't
# install a version PyTorch doesn't like. Once beartype fixes this problem.
# We can remove this line.
/opt/python/cp39-cp39/bin/python3.9 -m pip install beartype==0.15.0
cd /usr/local/
echo "Cloning ONNX Script"