@@ -19,6 +19,9 @@ class PyPynucleus(PythonPackage):
1919 for ref in refs :
2020 version (ref , branch = ref )
2121
22+ variant ("examples" , default = True , description = "Install examples" )
23+ variant ("tests" , default = True , description = "Install tests" )
24+
2225 depends_on (
"[email protected] :" ,
type = (
"build" ,
"run" ))
2326 depends_on (
"[email protected] :" ,
type = (
"build" ,
"link" ,
"run" ))
2427 depends_on (
"[email protected] :" ,
type = (
"build" ,
"run" ))
@@ -30,14 +33,14 @@ class PyPynucleus(PythonPackage):
3033 depends_on ("py-h5py" , type = ("build" , "run" ))
3134 depends_on ("py-tabulate" , type = ("build" , "run" ))
3235 depends_on ("py-pyyaml" , type = ("build" , "run" ))
33- depends_on ("py-matplotlib+latex " , type = ("build" , "run" ))
36+ depends_on ("py-matplotlib" , type = ("build" , "run" ))
3437 depends_on ("py-scikit-sparse" , type = ("build" , "run" ))
3538 depends_on ("py-modepy" , type = ("build" , "run" ))
3639 depends_on ("py-meshpy" , type = ("build" , "run" ))
3740 depends_on ("py-pytools" , type = ("build" , "run" ))
3841 depends_on ("py-psutil" , type = "run" )
39-
40- variant ( "examples " , default = True , description = "Install examples " )
42+ depends_on ( "py-pytest" , when = "+tests" , type = "run" )
43+ depends_on ( "py-pytest-html " , when = "+tests" , type = "run " )
4144
4245 import_modules = [
4346 "PyNucleus" ,
@@ -64,5 +67,9 @@ def install_python(self):
6467 def install_additional_files (self ):
6568 spec = self .spec
6669 prefix = self .prefix
67- if "+examples" in spec :
70+ if "+examples" in spec or "+tests" in spec :
6871 install_tree ("drivers" , prefix .drivers )
72+ if "+examples" in spec :
73+ install_tree ("examples" , prefix .examples )
74+ if "+tests" in spec :
75+ install_tree ("tests" , prefix .tests )
0 commit comments