Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
allow absent zlib.pc
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpase committed Dec 27, 2019
1 parent f74f554 commit fb8f4e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/module_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
png_include_dirs = png_pc['include_dirs']

# zlib
zlib_pc = pkgconfig.parse('zlib')
try:
zlib_pc = pkgconfig.parse('zlib')
except pkgconfig.PackageNotFoundError:
from collections import defaultdict
zlib_pc = defaultdict(list, {'libraries': ['z']})
zlib_libs = zlib_pc['libraries']
zlib_library_dirs = zlib_pc['library_dirs']
zlib_include_dirs = zlib_pc['include_dirs']
Expand Down

0 comments on commit fb8f4e5

Please sign in to comment.