Skip to content

Commit

Permalink
Build: When downloading Windows libraries, filter the candidate files…
Browse files Browse the repository at this point in the history
… by architecture before retrieving the maximum version.

Different architectures might not use the same library versions.
  • Loading branch information
scoder committed Jul 10, 2023
1 parent 0cd3d8a commit afcdbc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildlibxml.py
Expand Up @@ -60,6 +60,9 @@ def download_and_extract_windows_binaries(destdir):
if sys.version_info < (3, 5):
arch = 'vs2008.' + arch

arch_part = '.' + arch + '.'
filenames = [filename for filename in filenames if arch_part in filename]

libs = {}
for libname in ['libxml2', 'libxslt', 'zlib', 'iconv']:
libs[libname] = "%s-%s.%s.zip" % (
Expand Down

0 comments on commit afcdbc9

Please sign in to comment.