Build binaries for Linux ARM64

This commit is contained in:
Kovid Goyal
2021-12-10 12:47:34 +05:30
parent a4cd10c6fb
commit a938b01246
5 changed files with 29 additions and 11 deletions

View File

@@ -19,7 +19,11 @@ from bypy.freeze import (
from bypy.utils import get_dll_path, mkdtemp, py_compile, walk
j = os.path.join
arch = 'x86_64' if is64bit else 'i686'
machine = (os.uname()[4] or '').lower()
if machine.startswith('arm64') or machine.startswith('aarch64'):
arch = 'arm64'
else:
arch = 'x86_64' if is64bit else 'i686'
self_dir = os.path.dirname(os.path.abspath(__file__))
py_ver = '.'.join(map(str, python_major_minor_version()))
iv = globals()['init_env']