From 6581540f34004090ab40584248accc1808f1fb0f Mon Sep 17 00:00:00 2001 From: John Evans Date: Tue, 30 Jul 2013 09:52:07 -0400 Subject: [PATCH] Added monkey-patched fixture for openjpeg version. --- glymur/test/fixtures.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/glymur/test/fixtures.py b/glymur/test/fixtures.py index 3e5cfbb..39b4ac5 100644 --- a/glymur/test/fixtures.py +++ b/glymur/test/fixtures.py @@ -5,6 +5,14 @@ import numpy as np import glymur +# Need to know the openjpeg version. If openjpeg is not installed, we use +# '0.0.0' +OPENJPEG_VERSION = '0.0.0' +if glymur.lib.openjpeg.OPENJPEG is not None: + OPENJPEG_VERSION = glymur.lib.openjpeg.version() + +# Need to know of the libopenjp2 version is the official 2.0.0 release and NOT +# the 2.0+ development version. OPENJP2_IS_V2_OFFICIAL = False if glymur.lib.openjp2.OPENJP2 is not None: if not hasattr(glymur.lib.openjp2.OPENJP2,