summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSinan <sbulutw@gmail.com>2022-11-02 11:40:05 -0700
committerGitHub <noreply@github.com>2022-11-02 13:40:05 -0500
commit4b549560f9a5143971efc87d9e111505f71b22b0 (patch)
treed2c9d77a08e414f12ef94379cc23014391cc7845 /var
parentd4ea74bf80bde99a5d96ec0bbe9e872961f4679b (diff)
downloadspack-4b549560f9a5143971efc87d9e111505f71b22b0.tar.gz
spack-4b549560f9a5143971efc87d9e111505f71b22b0.tar.bz2
spack-4b549560f9a5143971efc87d9e111505f71b22b0.tar.xz
spack-4b549560f9a5143971efc87d9e111505f71b22b0.zip
package_qgis_fix_pythonpath (#33655)
* package_qgis_fix_pythonpath * check if bindings enabled also Co-authored-by: sbulut <sbulut@3vgeomatics.com>
Diffstat (limited to 'var')
-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