Skip to content

Commit 8b72a74

Browse files
niyas-saitscoder
authored andcommitted
Add win-arm64 build support (GH-326)
1 parent 557f431 commit 8b72a74

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

buildlibxml.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import os, re, sys, subprocess
1+
import os, re, sys, subprocess, platform
22
import tarfile
33
from distutils import log, version
44
from contextlib import closing
@@ -38,9 +38,14 @@ def download_and_extract_windows_binaries(destdir):
3838
if release_path in filename
3939
]
4040

41-
arch = "win64" if sys.maxsize > 2**32 else "win32"
4241
if sys.version_info < (3, 5):
4342
arch = 'vs2008.' + arch
43+
elif platform.machine() == 'ARM64':
44+
arch = "win-arm64"
45+
elif sys.maxsize > 2**32:
46+
arch = "win64"
47+
else:
48+
arch = "win32"
4449

4550
libs = {}
4651
for libname in ['libxml2', 'libxslt', 'zlib', 'iconv']:

0 commit comments

Comments
 (0)