mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +03:00
Merge pull request #3316 from radarhere/winbuild_fetch
Download lib if not present in pillow-depends
This commit is contained in:
commit
1e56ed8c00
|
@ -2,6 +2,7 @@ from unzip import unzip
|
||||||
from untar import untar
|
from untar import untar
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
from fetch import fetch
|
||||||
from config import compilers, compiler_from_env, libs
|
from config import compilers, compiler_from_env, libs
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,6 +45,8 @@ def extract(src, dest):
|
||||||
def extract_libs():
|
def extract_libs():
|
||||||
for name, lib in libs.items():
|
for name, lib in libs.items():
|
||||||
filename = lib['filename']
|
filename = lib['filename']
|
||||||
|
if not os.path.exists(filename):
|
||||||
|
filename = fetch(lib['url'])
|
||||||
if name == 'openjpeg':
|
if name == 'openjpeg':
|
||||||
for compiler in compilers.values():
|
for compiler in compilers.values():
|
||||||
if not os.path.exists(os.path.join(
|
if not os.path.exists(os.path.join(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user