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:
Axel Huebl 2020-06-12 11:28:05 -07:00 committed by GitHub
parent 34fb4b30dc
commit 42e6cb769e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')