From 70b81dc48d6e5c04cadbcf2b05c45fdda89a6e66 Mon Sep 17 00:00:00 2001 From: emai-imcs Date: Fri, 19 Feb 2021 00:02:39 +0100 Subject: py-fenics-instant: new package for legacy fenics 2016 and 2017 versions (#21775) * py-fenics-instant: new package for legacy fenics 2016 and 2017 versions * Update var/spack/repos/builtin/packages/py-fenics-instant/package.py Co-authored-by: Adam J. Stewart Co-authored-by: Adam J. Stewart --- .../builtin/packages/py-fenics-instant/package.py | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-fenics-instant/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-fenics-instant/package.py b/var/spack/repos/builtin/packages/py-fenics-instant/package.py new file mode 100644 index 0000000000..10de314363 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-fenics-instant/package.py @@ -0,0 +1,28 @@ +# 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 PyFenicsInstant(PythonPackage): + """Instant is a Python module that allows for instant inlining of C and C++ + code in Python. It is a small Python module built on top of SWIG and + Distutils. Instant has been retired after 2017.2.0 release. It is no longer + needed in FEniCS and hence no longer maintained and tested. """ + + homepage = "https://fenicsproject.org" + url = "https://bitbucket.org/fenics-project/instant/downloads/instant-2017.2.0.tar.gz" + maintainers = ['emai-imcs'] + + version('2017.2.0', sha256='be24f162fd1a89b82fae002db8df0b4f111fd50db83d78c0c121015c02e45b7b') + version('2016.2.0', sha256='df5e8ca306546fd1ee1a28e36b61c5d46456dc8b07e3293d674ddff62cf8d953') + + depends_on('python@2.7:', type=("build", "run")) + depends_on('py-six', type=('build', 'run')) + depends_on('py-subprocess32', when='^python@:2.999', type=('build', 'run')) + depends_on('py-setuptools', type="build") + depends_on('py-numpy', type=("build", "run")) + depends_on('cmake', type="run") + depends_on('swig', type=("build", "run")) -- cgit v1.2.3-60-g2f50