onnxruntime/tools/ci_build/github/linux/docker/scripts
Changming Sun d1ab94c2b0
Add compatibility for NumPy 2.0 (#21085)
### Description

As suggested by SciPy's doc, we will
`Build against NumPy 2.0.0, then it will work for all NumPy versions
with the same major version number (NumPy does maintain backwards ABI
compatibility), and as far back as NumPy 1.19 series at the time of
writing`

I think it works because in
[numpyconfig.h#L64](https://github.com/numpy/numpy/blob/main/numpy/_core/include/numpy/numpyconfig.h#L64)
there is a macro NPY_FEATURE_VERSION. By default it is set to
NPY_1_19_API_VERSION. And the NPY_FEATURE_VERSION macro controls ABI.

This PR only upgrade the build time dependency; When a user installs
ONNX Runtime, they still can use numpy 1.x.

### Motivation and Context
Recently numpy published a new version, 2.0.0, which is incompatible with the latest ONNX Runtime release.
2024-06-27 13:50:53 -07:00
..
lort Add compatibility for NumPy 2.0 (#21085) 2024-06-27 13:50:53 -07:00
manylinux Add compatibility for NumPy 2.0 (#21085) 2024-06-27 13:50:53 -07:00
training Add compatibility for NumPy 2.0 (#21085) 2024-06-27 13:50:53 -07:00
install-protobuf.sh
install_dotnet.sh Revert "Nuget .NET changes for Mac Catalyst (#19923)" (#20418) 2024-04-23 15:08:12 +08:00
install_java.sh Run Final_Jar_Testing_Linux_GPU in docker (#17533) 2023-09-15 08:35:55 -07:00
install_ninja.sh
install_openmpi.sh
install_os_deps.sh Update cmake to 3.27 and upgrade Linux CUDA docker files from CentOS7 to UBI8 (#16856) 2023-09-05 18:12:10 -07:00
install_protobuf.sh Upgrade Centos7 to Alamlinux8 (#16907) 2023-08-29 21:05:36 -07:00
install_python_deps.sh Adding python3.12 support to ORT (#18814) 2024-01-11 08:34:28 -08:00
install_rust.sh
install_ubuntu.sh
requirements.txt Add compatibility for NumPy 2.0 (#21085) 2024-06-27 13:50:53 -07:00
setup_rocm_yum_repo.sh [ROCm] Update CI/Packaging pipeline to ROCm6.0 (#18985) 2024-01-03 17:25:15 +08:00