depot/third_party/nixpkgs/pkgs/development/python-modules/glymur/set-lib-paths.patch
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

16 lines
530 B
Diff

diff --git a/glymur/config.py b/glymur/config.py
index 962e299..dab44ba 100644
--- a/glymur/config.py
+++ b/glymur/config.py
@@ -53,6 +53,11 @@ def _determine_full_path(libname):
if path is not None:
return path
+ if libname == "openjp2":
+ return "@openjp2_lib@"
+ if libname == "tiff":
+ return "@tiff_lib@"
+
# No joy on config file. Cygwin? Cygwin is a bit of an odd case.
if platform.system().startswith('CYGWIN'):
g = pathlib.Path('/usr/bin').glob('cygopenjp2*.dll')