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 0c7738a commit ef2ea6aCopy full SHA for ef2ea6a
setupext.py
@@ -1014,8 +1014,11 @@ def check(self):
1014
'libpng', 'png.h',
1015
min_version='1.2', version=version)
1016
except CheckFailed as e:
1017
- self.__class__.found_external = False
1018
- return str(e) + ' Using unknown version.'
+ include_dirs = [
+ os.path.join(dir, 'include') for dir in get_base_dirs()]
1019
+ if has_include_file(include_dirs, 'png.h'):
1020
+ return str(e) + ' Using unknown version found on system.'
1021
+ raise
1022
1023
def get_extension(self):
1024
sources = [
0 commit comments