From f6d1b11b298e747be873b187fe57585a26a77803 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 27 Jun 2026 17:29:31 +0530 Subject: [PATCH] Make arm64 binary deps available for dev.sh Fixes #10197 --- bypy/devenv.go | 8 ++++++-- setup.py | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bypy/devenv.go b/bypy/devenv.go index e6ad092ff..edd60fb8f 100644 --- a/bypy/devenv.go +++ b/bypy/devenv.go @@ -279,8 +279,12 @@ func dependencies(args []string) { which = "macos" case "linux": which = "linux" - if runtime.GOARCH != "amd64" { - exit("Pre-built dependencies are only available for the amd64 CPU architecture") + switch runtime.GOARCH { + case "amd64": + case "arm64", "arm64be": + url = strings.Replace(url, "-64.", "-arm64.", 1) + default: + exit(fmt.Sprintf("Pre-built binaries are not available for the %s architecture", runtime.GOARCH)) } } if which == "" { diff --git a/setup.py b/setup.py index eb8c699cc..0f0a7edd4 100755 --- a/setup.py +++ b/setup.py @@ -2323,6 +2323,7 @@ def do_build(args: Options) -> None: elif args.action == 'export-ci-bundles': cmd = [sys.executable, '../bypy', 'export', 'download.calibre-ebook.com:/srv/download/ci/kitty'] subprocess.check_call(cmd + ['linux']) + subprocess.check_call(cmd + ['linux', '--arch=arm64']) subprocess.check_call(cmd + ['macos']) elif args.action == 'build-static-binaries': build_static_binaries(args, launcher_dir)