Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Use manylinux tags for cua-driver wheels (#2130)

Francesco Bonacciea2879eced70
diff --git a/libs/cua-driver/python/build_wheel.py b/libs/cua-driver/python/build_wheel.py
index 8f6a81a7d6..de342dcc4d 100644
--- a/libs/cua-driver/python/build_wheel.py
+++ b/libs/cua-driver/python/build_wheel.py
@@ -80,10 +80,11 @@ def get_wheel_tag(platform_name: str, arch: str) -> str:
if platform_name == "darwin":
return "py3-none-macosx_11_0_universal2"
if platform_name == "linux":
+ # Rust Linux release binaries are built in debian:11, whose glibc floor is 2.31.
if arch == "x86_64":
- return "py3-none-linux_x86_64"
+ return "py3-none-manylinux_2_31_x86_64"
if arch == "arm64":
- return "py3-none-linux_aarch64"
+ return "py3-none-manylinux_2_31_aarch64"
if platform_name == "windows":
if arch == "x86_64":
return "py3-none-win_amd64"
diff --git a/libs/cua-driver/python/tests/test_build_wheel.py b/libs/cua-driver/python/tests/test_build_wheel.py
index 690b1954c3..fac7c6d79a 100644
--- a/libs/cua-driver/python/tests/test_build_wheel.py
+++ b/libs/cua-driver/python/tests/test_build_wheel.py
@@ -17,8 +17,8 @@ def test_wheel_tags_are_platform_specific():
build_wheel = load_build_wheel_module()
assert build_wheel.get_wheel_tag("darwin", "universal") == "py3-none-macosx_11_0_universal2"
- assert build_wheel.get_wheel_tag("linux", "x86_64") == "py3-none-linux_x86_64"
- assert build_wheel.get_wheel_tag("linux", "arm64") == "py3-none-linux_aarch64"
+ assert build_wheel.get_wheel_tag("linux", "x86_64") == "py3-none-manylinux_2_31_x86_64"
+ assert build_wheel.get_wheel_tag("linux", "arm64") == "py3-none-manylinux_2_31_aarch64"
assert build_wheel.get_wheel_tag("windows", "x86_64") == "py3-none-win_amd64"
assert build_wheel.get_wheel_tag("windows", "arm64") == "py3-none-win_arm64"