This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fury.git
The following commit(s) were added to refs/heads/main by this push:
new a0dd77e8 ci: fix ci error (#1691)
a0dd77e8 is described below
commit a0dd77e82f41320f950db200443bcff514e0f5e3
Author: LiangliangSui <[email protected]>
AuthorDate: Tue Jun 18 20:43:21 2024 +0800
ci: fix ci error (#1691)
## What does this PR do?
The current CI keeps failing.
[Error](https://github.com/apache/fury/actions/runs/9560557264/job/26352935638):
```
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
```
`numpy` was updated to 2.0.0 on Jun 16, 2024, which caused compatibility
issues with CI, so `numpy<2.0.0` was set.

## Related issues
## Does this PR introduce any user-facing change?
- [ ] Does this PR introduce any public API change?
- [ ] Does this PR introduce any binary protocol compatibility change?
## Benchmark
Signed-off-by: LiangliangSui <[email protected]>
---
ci/run_ci.py | 1 +
ci/run_ci.sh | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ci/run_ci.py b/ci/run_ci.py
index 7a477409..d43a4af5 100644
--- a/ci/run_ci.py
+++ b/ci/run_ci.py
@@ -115,6 +115,7 @@ def _run_js():
def _install_cpp_deps():
_exec_cmd(f"pip install pyarrow=={PYARROW_VERSION}")
_exec_cmd("pip install psutil")
+ _exec_cmd("pip install 'numpy<2.0.0'")
_install_bazel()
diff --git a/ci/run_ci.sh b/ci/run_ci.sh
index 30bbe44b..2883254b 100755
--- a/ci/run_ci.sh
+++ b/ci/run_ci.sh
@@ -34,7 +34,7 @@ install_python() {
install_pyfury() {
echo "Python version $(python -V), path $(which python)"
"$ROOT"/ci/deploy.sh install_pyarrow
- pip install Cython wheel numpy pytest
+ pip install Cython wheel "numpy<2.0.0" pytest
pushd "$ROOT/python"
pip list
export PATH=~/bin:$PATH
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]