summaryrefslogtreecommitdiff
path: root/buildlibxml.py
diff options
context:
space:
mode:
authorPaul "TBBle" Hampson <Paul.Hampson@Pobox.com>2017-02-11 03:10:57 +1100
committerPaul "TBBle" Hampson <Paul.Hampson@Pobox.com>2017-02-11 03:14:48 +1100
commit3f303009048a1558e58472e02f42fa3b5fb82fc1 (patch)
treec22ed5a0e6caecc86b2349f531c89eb855ddb3cc /buildlibxml.py
parentb0da4c1bc042c0e4a8cdecdb38ecd13ddf5f7e30 (diff)
downloadpython-lxml-3f303009048a1558e58472e02f42fa3b5fb82fc1.tar.gz
Apply Python FTP download workaround to Win32 libs
See d0125dc and https://bugs.python.org/issue27973
Diffstat (limited to 'buildlibxml.py')
-rw-r--r--buildlibxml.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/buildlibxml.py b/buildlibxml.py
index bbdf62b0..5b32034c 100644
--- a/buildlibxml.py
+++ b/buildlibxml.py
@@ -57,6 +57,7 @@ def download_and_extract_zlatkovic_binaries(destdir):
srcfile = urljoin(url, libfn)
destfile = os.path.join(destdir, libfn)
print('Retrieving "%s" to "%s"' % (srcfile, destfile))
+ urlcleanup() # work around FTP bug 27973 in Py2.7.12+
urlretrieve(srcfile, destfile)
d = unpack_zipfile(destfile, destdir)
libs[libname] = d