fenics-dolfinx: dependency updates (#30919)

* Add pugixml dependency

* Dependency updates

* Fix Spack Numpy verion

* Test more generous NumPy constraint

* Fix NumPy requirment
This commit is contained in:
Garth N. Wells 2022-06-01 03:49:49 +02:00 committed by GitHub
parent 9cc3a2942d
commit d166b948ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -59,6 +59,7 @@ class FenicsDolfinx(CMakePackage):
depends_on("slepc", when="+slepc") depends_on("slepc", when="+slepc")
depends_on("adios2+mpi", when="+adios2") depends_on("adios2+mpi", when="+adios2")
depends_on("pugixml", when="@main")
depends_on("fenics-ufcx@main", when="@main") depends_on("fenics-ufcx@main", when="@main")
depends_on("fenics-ufcx@0.4.2", when="@0.4.1") depends_on("fenics-ufcx@0.4.2", when="@0.4.1")
@ -86,6 +87,7 @@ def cmake_args(self):
if self.spec.satisfies('@0.4.0:'): if self.spec.satisfies('@0.4.0:'):
args += [ args += [
self.define('DOLFINX_UFCX_PYTHON', False),
self.define('DOLFINX_ENABLE_KAHIP', 'partitioners=kahip' in self.spec), self.define('DOLFINX_ENABLE_KAHIP', 'partitioners=kahip' in self.spec),
self.define('DOLFINX_ENABLE_PARMETIS', self.define('DOLFINX_ENABLE_PARMETIS',
'partitioners=parmetis' in self.spec), 'partitioners=parmetis' in self.spec),

View file

@ -32,12 +32,12 @@ class PyFenicsDolfinx(PythonPackage):
depends_on("fenics-dolfinx@0.3.0", when="@0.3.0") depends_on("fenics-dolfinx@0.3.0", when="@0.3.0")
depends_on("fenics-dolfinx@0.2.0", when="@0.2.0") depends_on("fenics-dolfinx@0.2.0", when="@0.2.0")
depends_on("fenics-dolfinx@0.1.0", when="@0.1.0") depends_on("fenics-dolfinx@0.1.0", when="@0.1.0")
depends_on("fenics-basix@main", type=("build", "link"), when="@main") depends_on("fenics-basix@main", type=("build", "link"), when="@main")
depends_on("fenics-basix@0.4.2", type=("build", "link"), when="@0.4.1") depends_on("fenics-basix@0.4.2", type=("build", "link"), when="@0.4.1")
depends_on("fenics-basix@0.3.0", type=("build", "link"), when="@0.3.0") depends_on("fenics-basix@0.3.0", type=("build", "link"), when="@0.3.0")
depends_on("fenics-basix@0.2.0", type=("build", "link"), when="@0.2.0") depends_on("fenics-basix@0.2.0", type=("build", "link"), when="@0.2.0")
depends_on("fenics-basix@0.1.0", type=("build", "link"), when="@0.1.0") depends_on("fenics-basix@0.1.0", type=("build", "link"), when="@0.1.0")
depends_on("py-fenics-ffcx@main", type="run", when="@main") depends_on("py-fenics-ffcx@main", type="run", when="@main")
depends_on("py-fenics-ffcx@0.4.2", type="run", when="@0.4.1") depends_on("py-fenics-ffcx@0.4.2", type="run", when="@0.4.1")
depends_on("py-fenics-ffcx@0.3.0", type="run", when="@0.3.0") depends_on("py-fenics-ffcx@0.3.0", type="run", when="@0.3.0")
@ -47,13 +47,14 @@ class PyFenicsDolfinx(PythonPackage):
depends_on("py-fenics-ufl@2022.1.0", type="run", when="@0.4.1") depends_on("py-fenics-ufl@2022.1.0", type="run", when="@0.4.1")
depends_on("py-fenics-ufl@2021.1.0", type="run", when="@0.1:0.3.99") depends_on("py-fenics-ufl@2021.1.0", type="run", when="@0.1:0.3.99")
depends_on("py-numpy@:1.20.3", type=("build", "run")) depends_on("py-numpy@1.21:", type=("build", "run"), when="@main")
depends_on("py-numpy", type=("build", "run"))
depends_on("py-mpi4py", type=("build", "run")) depends_on("py-mpi4py", type=("build", "run"))
depends_on("py-petsc4py", type=("build", "run")) depends_on("py-petsc4py", type=("build", "run"))
depends_on("py-pybind11@2.6.2:", type=("build", "run")) depends_on("py-pybind11@2.6.2:", type=("build", "run"))
depends_on("xtensor@0.23.10:", type="build") depends_on("xtensor@0.23.10:", type="build")
depends_on("py-cffi", type="run") depends_on("py-cffi", type="run")
depends_on("py-numpy", type="run")
build_directory = 'python' build_directory = 'python'