diff options
author | Niyas Sait <niyas.sait@linaro.org> | 2021-10-17 18:33:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 19:33:03 +0200 |
commit | 5d7d69d7de25f7d0f5079965e6ab8cfdba672ed1 (patch) | |
tree | 103080a852d2ab70fc9a7eb3d1d44d12157ee573 /buildlibxml.py | |
parent | 02cdbb301b1b1c0eecea267cb2af9ece5987bfd4 (diff) | |
download | python-lxml-5d7d69d7de25f7d0f5079965e6ab8cfdba672ed1.tar.gz |
Add win-arm64 build support (GH-326)
Diffstat (limited to 'buildlibxml.py')
-rw-r--r-- | buildlibxml.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/buildlibxml.py b/buildlibxml.py index 169502bd..a76b643a 100644 --- a/buildlibxml.py +++ b/buildlibxml.py @@ -1,4 +1,4 @@ -import os, re, sys, subprocess +import os, re, sys, subprocess, platform import tarfile from distutils import log, version from contextlib import closing @@ -38,9 +38,14 @@ def download_and_extract_windows_binaries(destdir): if release_path in filename ] - arch = "win64" if sys.maxsize > 2**32 else "win32" if sys.version_info < (3, 5): arch = 'vs2008.' + arch + elif platform.machine() == 'ARM64': + arch = "win-arm64" + elif sys.maxsize > 2**32: + arch = "win64" + else: + arch = "win32" libs = {} for libname in ['libxml2', 'libxslt', 'zlib', 'iconv']: |