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)