This is an automated email from the ASF dual-hosted git repository.

xtsong pushed a commit to branch release-0.2
in repository https://gitbox.apache.org/repos/asf/flink-agents.git


The following commit(s) were added to refs/heads/release-0.2 by this push:
     new dc81f79b [build] Fix onnxruntime build failure on macOS x86_64 (#525)
dc81f79b is described below

commit dc81f79bcb1fd7dc25dbc7a3d5de3ecdf7e50321
Author: Alan Z. <[email protected]>
AuthorDate: Thu Feb 12 16:41:52 2026 -0800

    [build] Fix onnxruntime build failure on macOS x86_64 (#525)
---
 python/pyproject.toml | 3 +--
 tools/build.sh        | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/pyproject.toml b/python/pyproject.toml
index dbe69857..fe27c9ca 100644
--- a/python/pyproject.toml
+++ b/python/pyproject.toml
@@ -55,7 +55,6 @@ dependencies = [
     "anthropic>=0.64.0",
     "chromadb==1.0.21",
     "onnxruntime<1.24.1;python_version<'3.11'",
-    "onnxruntime>=1.24.1;python_version>='3.11'",
 ]
 
 [tool.setuptools]
@@ -110,7 +109,7 @@ members = ["."]
 [tool.uv]
 # Configure required environments for platform compatibility
 required-environments = [
-    "sys_platform == 'darwin' and platform_machine == 'arm64'",
+    "sys_platform == 'darwin'",
     "sys_platform == 'linux'",
     "sys_platform == 'win32'",
 ]
diff --git a/tools/build.sh b/tools/build.sh
index 63f3ecdc..718adf55 100755
--- a/tools/build.sh
+++ b/tools/build.sh
@@ -78,6 +78,7 @@ if $build_python; then
   cd python
   rm -rf dist/  # Clean old build artifacts before building
   pip install uv
+  uv lock
   uv sync --extra dev
   uv run python -m build
   uv pip install dist/*.whl

Reply via email to