onnxruntime/tools/ci_build/github/linux/docker/scripts/manylinux
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
..
install_centos.sh Update training packaging pipeline's docker files (#20853) 2024-05-30 23:48:42 -07:00
install_deps.sh Adding python3.12 support to ORT (#18814) 2024-01-11 08:34:28 -08:00
install_deps_aten.sh Update Aten pipeline's docker file to use UBI8 (#20856) 2024-05-30 07:38:15 -07:00
install_deps_eager.sh Adding python3.12 support to ORT (#18814) 2024-01-11 08:34:28 -08:00
install_deps_lort.sh Update Aten pipeline's docker file to use UBI8 (#20856) 2024-05-30 07:38:15 -07:00
install_shared_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_ubuntuos.sh Update CUDA version to 11.6 and refactor python packaging pipeline (#13002) 2022-09-23 00:29:27 -07:00
requirements.txt Add compatibility for NumPy 2.0 (#21085) 2024-06-27 13:50:53 -07:00