Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d94744 commit 84a7a1fCopy full SHA for 84a7a1f
1 file changed
setupext.py
@@ -797,9 +797,13 @@ class Png(SetupPackage):
797
name = "png"
798
799
def check(self):
800
- return self._check_for_pkg_config(
801
- 'libpng', 'png.h',
802
- min_version='1.2')
+ try:
+ return self._check_for_pkg_config(
+ '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.'
807
808
def get_extension(self):
809
sources = [
0 commit comments