summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/qgis/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/qgis/package.py b/var/spack/repos/builtin/packages/qgis/package.py
index 377c4fd10e..158a2a021f 100644
--- a/var/spack/repos/builtin/packages/qgis/package.py
+++ b/var/spack/repos/builtin/packages/qgis/package.py
@@ -240,6 +240,11 @@ class Qgis(CMakePackage):
args.append("-DWITH_GRASS7=OFF")
return args
+ def setup_run_environment(self, env):
+ if "+bindings" in self.spec:
+ # python module isn't located at the standard path
+ env.prepend_path("PYTHONPATH", self.prefix.share.qgis.python)
+
def check(self):
"""The tests of fail without access to an X server, cant run on build servers"""
pass