onnxruntime/tools/ci_build/github/windows
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
..
eager Add compatibility for NumPy 2.0 (#21085) 2024-06-27 13:50:53 -07:00
post_to_dashboard Pin version of post to dashboard scripts' dependencies and update them to work with recent version. (#10353) 2022-01-21 19:35:58 -08:00
bundle_dlls_gpu.bat Create combined GPU tarball and zip file package (#8827) 2021-08-25 13:51:18 -07:00
bundle_nuget_with_native_headers.bat [TensorRT EP] Refactor OrtTensorRTProviderOptions initialization and make it easy to add new field (#17617) 2023-10-06 14:12:20 -07:00
extract_nuget_files.ps1 Creating Nuget and Android packages for Training (#15712) 2023-05-01 12:59:56 -07:00
extract_nuget_files_gpu.ps1 Fix Nuget Cuda pipeline package pipeline (#20741) 2024-05-24 09:15:57 -07:00
extract_zip_files_gpu.ps1 Fix issue of GPU tarball/zip/java package (#8850) 2021-08-26 10:16:16 -07:00
helpers.ps1 Add compatibility for NumPy 2.0 (#21085) 2024-06-27 13:50:53 -07:00
install_third_party_deps.ps1 Update ONNX installing script (#21044) 2024-06-13 23:49:41 -07:00
jar_gpu_packaging.ps1 Create combined GPU tarball and zip file package (#8827) 2021-08-25 13:51:18 -07:00
jar_packaging.ps1 remove wrong placed libs (#12201) 2022-07-18 09:22:22 -07:00
post_binary_sizes_to_dashboard.py Bump ruff to 0.3.2 and black to 24 (#19878) 2024-03-13 10:00:32 -07:00
post_code_coverage_to_dashboard.py Adopt linrtunner as the linting tool - take 2 (#15085) 2023-03-24 15:29:03 -07:00
set_telemetry_var.ps1 Update the post-merge pipeline (#14965) 2023-03-29 13:12:07 -07:00
setup_env.bat Add license header to some files. (#13074) 2022-09-23 18:46:02 -07:00
setup_env_cuda.bat Update setup_env_cuda.bat (#18176) 2023-10-30 21:28:02 -07:00
setup_env_gpu.bat [TensorRT EP] support TensorRT 10-GA (#20506) 2024-05-01 11:10:53 -07:00
setup_env_trt.bat [TensorRT EP] support TensorRT 10-GA (#20506) 2024-05-01 11:10:53 -07:00
setup_env_x86.bat Add license header to some files. (#13074) 2022-09-23 18:46:02 -07:00