python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / development / python-modules / glymur / set-lib-paths.patch
blob4ae7b58b1cdc01ae15c98d3dcfde8c1b06c3c921
1 diff --git a/glymur/config.py b/glymur/config.py
2 index 962e299..dab44ba 100644
3 --- a/glymur/config.py
4 +++ b/glymur/config.py
5 @@ -53,6 +53,11 @@ def _determine_full_path(libname):
6 if path is not None:
7 return path
9 + if libname == "openjp2":
10 + return "@openjp2_lib@"
11 + if libname == "tiff":
12 + return "@tiff_lib@"
14 # No joy on config file. Cygwin? Cygwin is a bit of an odd case.
15 if platform.system().startswith('CYGWIN'):
16 g = pathlib.Path('/usr/bin').glob('cygopenjp2*.dll')