Merge pull request #3316 from radarhere/winbuild_fetch

Download lib if not present in pillow-depends
This commit is contained in:
Hugo 2018-08-24 14:02:20 +03:00 committed by GitHub
commit 1e56ed8c00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@ from unzip import unzip
from untar import untar
import os
from fetch import fetch
from config import compilers, compiler_from_env, libs
@ -44,6 +45,8 @@ def extract(src, dest):
def extract_libs():
for name, lib in libs.items():
filename = lib['filename']
if not os.path.exists(filename):
filename = fetch(lib['url'])
if name == 'openjpeg':
for compiler in compilers.values():
if not os.path.exists(os.path.join(