diff options
author | emai-imcs <edwin.mai@unibw.de> | 2021-02-22 22:10:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-22 15:10:28 -0600 |
commit | 73da7b6de68c6102ef024e794f9ccb2a9ac7cc1a (patch) | |
tree | 591945d2639a4eed1cfa28597e1c2e3d2132ef33 /var | |
parent | 08054ffce73dc9aeb1dabe7a3abfdb446653cc4f (diff) | |
download | spack-73da7b6de68c6102ef024e794f9ccb2a9ac7cc1a.tar.gz spack-73da7b6de68c6102ef024e794f9ccb2a9ac7cc1a.tar.bz2 spack-73da7b6de68c6102ef024e794f9ccb2a9ac7cc1a.tar.xz spack-73da7b6de68c6102ef024e794f9ccb2a9ac7cc1a.zip |
py-fenics-ffc: new package to support fenics (#21862)
* new Python FFC package to support FEniCS 2018 onwards
* added py-dijitso dependency
* added fenics python ffc package
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-fenics-ffc/package.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-fenics-ffc/package.py b/var/spack/repos/builtin/packages/py-fenics-ffc/package.py new file mode 100644 index 0000000000..0c3b9fbf66 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-fenics-ffc/package.py @@ -0,0 +1,39 @@ +# 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 PyFenicsFfc(PythonPackage): + """The FEniCS Form Compiler FFC is a compiler for finite element + variational forms, translating high-level mathematical descriptions + of variational forms into efficient low-level C++ code for finite + element assembly.""" + + homepage = "https://fenicsproject.org/" + git = "https://bitbucket.org/fenics-project/ffc.git" + url = "https://bitbucket.org/fenics-project/ffc/downloads/ffc-2019.1.0.post0.tar.gz" + maintainers = ['emai-imcs'] + + version('2019.1.0.post0', sha256='306e1179630200a34202975a5369194939b3482eebfc34bc44ad74dab1f109e8') + version('2018.1.0', sha256='c5a6511693106d1cd2fc013148d0cd01cd1b99fc65dab461ca0b95851a9ea271') + version('2017.2.0.post0', sha256='1969a5460cb866c478df64874ce213f81cb5c893b89f991a578e258b1a64fee5') + version('2016.2.0', sha256='097c284780447ea7bb47d4d51956648a1efb2cb9047eb1382944421dde351ecb') + + depends_on('python@3.5:', type=('build', 'run')) + + depends_on('py-setuptools', type=('build', 'run')) + depends_on('py-numpy', type=('build', 'run')) + + for ver in ['2019.1.0.post0', '2018.1.0', '2017.2.0.post0', '2016.2.0']: + if ver in ['2019.1.0.post0', '2017.2.0.post0']: + ver = ver[:ver.rfind('.post')] + wver = '@' + ver + depends_on('py-fenics-fiat{0}'.format(wver), type=('build', 'run'), when=wver) + if(Version(ver) < Version('2017.2.0')): + depends_on('py-fenics-instant{0}'.format(wver), type=('build', 'run'), when=wver) + else: + depends_on('py-fenics-dijitso{0}'.format(wver), type=('build', 'run'), when=wver) + depends_on('py-fenics-ufl{0}'.format(wver), type=('build', 'run'), when=wver) |