From 0b2726261d41091bd1626bd290aa258b365e7a3d Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Sat, 17 Feb 2024 01:40:49 +0100 Subject: [PATCH] add setup support for aarch64 --- setup.py | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/setup.py b/setup.py index c16a8285..963c0614 100755 --- a/setup.py +++ b/setup.py @@ -18,22 +18,32 @@ url_repo_qt_fmt = "https://download.qt.io/online/qtsdkrepository/{os}_{arch}/desktop/qt{ver_maj}_{ver_concat}/" -os_map = {"Linux": "linux", - "Windows": "windows", - "Darwin": "mac"} - -arch_map = {"i386": "x86", - "i686": "x86", - "x86": "x86", - "x86_64": "x64", - "AMD64": "x64"} - -os_compiler = {"Linux": "gcc", - "Windows": "msvc2019", - "Darwin": "clang"} - -arch_bits = {"x86": "32", - "x64": "64"} +os_map = { + "Linux": "linux", + "Windows": "windows", + "Darwin": "mac", +} + +arch_map = { + "i386": "x86", + "i686": "x86", + "x86": "x86", + "x86_64": "x64", + "AMD64": "x64", + "aarch64": "arm64", +} + +os_compiler = { + "Linux": "gcc", + "Windows": "msvc2019", + "Darwin": "clang", +} + +arch_bits = { + "x86": "32", + "x64": "64", + "arm64": "64", +} def download_check_fail(url, expected_type): print("download URL:", url, flush=True)