Fenicsx: update for basix (#21220)

This commit is contained in:
Chris Richardson 2021-01-25 21:29:06 +00:00 committed by GitHub
parent 5af2b1a933
commit ced55fbfe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 2 deletions

View file

@ -33,8 +33,9 @@ class FenicsDolfinx(CMakePackage):
depends_on("slepc", when="+slepc") depends_on("slepc", when="+slepc")
depends_on("py-fenics-ffcx", type=("build", "run")) depends_on("py-fenics-ffcx", type=("build", "run"))
depends_on("py-fenics-basix", type=("build", "run"))
conflicts('%gcc@:6', msg='C++17 support required') conflicts('%gcc@:8', msg='Improved C++17 support required')
root_cmakelists_dir = "cpp" root_cmakelists_dir = "cpp"

View file

@ -0,0 +1,26 @@
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyFenicsBasix(PythonPackage):
"""Python basis evaluation library for Next generation FEniCS problem solving
environment"""
homepage = "https://github.com/FEniCS/basix"
git = "https://github.com/FEniCS/basix.git"
maintainers = ["chrisrichardson", "mscroggs"]
version("main", branch="main")
depends_on("cmake@3.9:", type="build")
depends_on("eigen@3.3.7:")
depends_on("python@3.5:", type=('build', 'run'))
depends_on("py-setuptools", type="build")
depends_on("py-scikit-build", type="build")
depends_on("py-pybind11", type="build")
phases = ['build', 'install']

View file

@ -19,5 +19,5 @@ class PyFenicsFfcx(PythonPackage):
depends_on("py-setuptools", type=("build", "run")) depends_on("py-setuptools", type=("build", "run"))
depends_on("py-cffi", type=("build", "run")) depends_on("py-cffi", type=("build", "run"))
depends_on("py-fenics-ufl@master", type=("build", "run")) depends_on("py-fenics-ufl@master", type=("build", "run"))
depends_on("py-fenics-fiat@master", type=("build", "run")) depends_on("py-fenics-basix@main", type=("build", "run"))
depends_on("py-numpy", type=("build", "run")) depends_on("py-numpy", type=("build", "run"))