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

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


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

commit 7db1157e5296820090bd3da31061d43041b3ffac
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 69fea945..ce9ebf61 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