8000 Allow local libpng copy · matplotlib/matplotlib@84a7a1f · GitHub
[go: up one dir, main page]

Skip to content

Commit 84a7a1f

Browse files
GBilloteymdboom
authored andcommitted
Allow local libpng copy
1 parent 1d94744 commit 84a7a1f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

setupext.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -797,9 +797,13 @@ class Png(SetupPackage):
797797
name = "png"
798798

799799
def check(self):
800-
return self._check_for_pkg_config(
801-
'libpng', 'png.h',
802-
min_version='1.2')
800+
try:
801+
return self._check_for_pkg_config(
802+
'libpng', 'png.h',
803+
min_version='1.2')
804+
except CheckFailed as e:
805+
self.__class__.found_external = False
806+
return str(e) + ' Using local copy.'
803807

804808
def get_extension(self):
805809
sources = [

0 commit comments

Comments
 (0)
0