Geant4 +Python: fix module load (#17046)
Adding `extends('python')` makes sure that a ``` spack load -r geant4 +python python -c "import Geant4" ``` find the module.
This commit is contained in:
parent
34fb4b30dc
commit
42e6cb769e
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ class Geant4(CMakePackage):
|
|||
|
||||
# Python, with boost requirement dealt with in cxxstd section
|
||||
depends_on('python@3:', when='+python')
|
||||
extends('python', when='+python')
|
||||
conflicts('+python', when='@:10.6.1',
|
||||
msg='Geant4 <= 10.6.1 cannont be built with Python bindings')
|
||||
|
||||
|
|
Loading…
Reference in a new issue