summaryrefslogtreecommitdiff
path: root/buildlibxml.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2017-09-19 08:42:41 +0200
committerStefan Behnel <stefan_ml@behnel.de>2017-09-19 08:42:41 +0200
commitc75d243e811f6e255733353af5c3e29694d912fa (patch)
tree5a0edb786f27819fa6ddbdcbb72b2440f5ea3f56 /buildlibxml.py
parentb908838d2b05ac5670a30c0ea892aee293c77e46 (diff)
downloadpython-lxml-c75d243e811f6e255733353af5c3e29694d912fa.tar.gz
Do not use outdated Zlatkovic binaries anymore.
Diffstat (limited to 'buildlibxml.py')
-rw-r--r--buildlibxml.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/buildlibxml.py b/buildlibxml.py
index e6230bd3..4407fa8c 100644
--- a/buildlibxml.py
+++ b/buildlibxml.py
@@ -26,15 +26,14 @@ except:
# use pre-built libraries on Windows
def download_and_extract_windows_binaries(destdir):
- if sys.maxsize > 2147483647:
- arch = "win64"
- else:
- arch = "win32"
+ arch = "win64" if sys.maxsize > 2**32 else "win32"
- if sys.version_info < (3, 5) and arch != 'win64':
+ if False and sys.version_info < (3, 5) and arch == 'win32':
url = 'ftp://ftp.zlatkovic.com/pub/libxml/'
filenames = remote_listdir(url)
else:
+ if sys.version_info < (3, 5):
+ arch = 'vs2008.' + arch
url = "https://github.com/mhils/libxml2-win-binaries/releases"
filenames = list(_list_dir_urllib(url))
release_path = "/download/%s/" % find_max_version(