Merge pull request #203 from twpayne/work-around-python-extract-all-bug
Work around extractall bug in older versions of Python
This commit is contained in:
@@ -345,7 +345,10 @@ def hostexamples(t):
|
|||||||
@target(PROJ4JS, PROJ4JS_ZIP)
|
@target(PROJ4JS, PROJ4JS_ZIP)
|
||||||
def proj4js(t):
|
def proj4js(t):
|
||||||
from zipfile import ZipFile
|
from zipfile import ZipFile
|
||||||
ZipFile(PROJ4JS_ZIP).extractall('build')
|
zf = ZipFile(PROJ4JS_ZIP)
|
||||||
|
contents = zf.open('proj4js/lib/proj4js-combined.js').read()
|
||||||
|
with open(t.name, 'wb') as f:
|
||||||
|
f.write(contents)
|
||||||
|
|
||||||
|
|
||||||
@target(PROJ4JS_ZIP, clean=False)
|
@target(PROJ4JS_ZIP, clean=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user