Skip to content

Commit 8f3d924

Browse files
mxaminTomiBelan
andauthored
Fix windows wheels and add ARM support (#354)
Co-authored-by: Tomi Belan <[email protected]>
1 parent 3f1dfe5 commit 8f3d924

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
&& cibuildwheel --print-build-identifiers --platform macos \
8888
| jq -nRc '{"only": inputs, "os": "macos-latest"}' \
8989
&& cibuildwheel --print-build-identifiers --platform windows \
90-
| jq -nRc '{"only": inputs, "os": "windows-2019"}'
90+
| jq -nRc '{"only": inputs, "os": "windows-2022"}'
9191
} | jq -sc
9292
)
9393
echo "include=$MATRIX"

setup.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import json
55
import multiprocessing
66
import os
7+
import platform
78
import re
89
import subprocess
910
import sys
@@ -211,19 +212,21 @@ def run(self):
211212
super(build_ext, self).run()
212213

213214
def prepare_static_build_win(self):
214-
release_url = 'https://github.com/mxamin/python-xmlsec-win-binaries/releases/download/2024.04.17/'
215-
if sys.maxsize > 2147483647: # 2.0 GiB
215+
release_url = 'https://github.com/mxamin/python-xmlsec-win-binaries/releases/download/2025.07.10/'
216+
if platform.machine() == 'ARM64':
217+
suffix = 'win-arm64'
218+
elif sys.maxsize > 2**32: # 2.0 GiB
216219
suffix = 'win64'
217220
else:
218221
suffix = 'win32'
219222

220223
libs = [
221-
'libxml2-2.11.7.{}.zip'.format(suffix),
222-
'libxslt-1.1.37.{}.zip'.format(suffix),
223-
'zlib-1.2.12.{}.zip'.format(suffix),
224-
'iconv-1.16-1.{}.zip'.format(suffix),
225-
'openssl-3.0.8.{}.zip'.format(suffix),
226-
'xmlsec-1.3.4.{}.zip'.format(suffix),
224+
'libxml2-2.11.9-3.{}.zip'.format(suffix),
225+
'libxslt-1.1.39.{}.zip'.format(suffix),
226+
'zlib-1.3.1.{}.zip'.format(suffix),
227+
'iconv-1.18-1.{}.zip'.format(suffix),
228+
'openssl-3.0.16.pl1.{}.zip'.format(suffix),
229+
'xmlsec-1.3.7.{}.zip'.format(suffix),
227230
]
228231

229232
for libfile in libs:

0 commit comments

Comments
 (0)