summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorCameron Rutherford <robert.rutherford@pnnl.gov>2023-10-30 03:35:36 -0400
committerGitHub <noreply@github.com>2023-10-30 08:35:36 +0100
commit7739c54eb5054ca4cb9a7b1b058947b877cea911 (patch)
tree1c924e70ce157c04abb36e7187363a61bcbfc15b /var
parentbd1bb7d1ba6730a67b6eab2e669e0e768e15ff61 (diff)
downloadspack-7739c54eb5054ca4cb9a7b1b058947b877cea911.tar.gz
spack-7739c54eb5054ca4cb9a7b1b058947b877cea911.tar.bz2
spack-7739c54eb5054ca4cb9a7b1b058947b877cea911.tar.xz
spack-7739c54eb5054ca4cb9a7b1b058947b877cea911.zip
exago: fix exago missing on PYTHONPATH when `+python` (#40748)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/exago/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/exago/package.py b/var/spack/repos/builtin/packages/exago/package.py
index 8db0f7f16f..06a9c9f393 100644
--- a/var/spack/repos/builtin/packages/exago/package.py
+++ b/var/spack/repos/builtin/packages/exago/package.py
@@ -62,10 +62,14 @@ class Exago(CMakePackage, CudaPackage, ROCmPackage):
variant("raja", default=False, description="Enable/Disable RAJA")
variant("python", default=True, when="@1.4:", description="Enable/Disable Python bindings")
variant("logging", default=True, description="Enable/Disable spdlog based logging")
+
conflicts(
"+python", when="+ipopt+rocm", msg="Python bindings require -fPIC with Ipopt for rocm."
)
+ # Adds ExaGO's python wrapper to PYTHONPATH
+ extends("python", when="+python")
+
# Solver options
variant("hiop", default=False, description="Enable/Disable HiOp")
variant("ipopt", default=False, description="Enable/Disable IPOPT")