
This PR removes [end of life](https://endoflife.date/python) versions of Python from Spack. Specifically, this includes all versions of Python older than 3.7. See https://github.com/spack/spack/discussions/31824 for rationale. Deprecated in #32615. And #28003. For anyone using software that relies on Python 2, you have a few options: * Upgrade the software to support Python 3. The `3to2` tool may get you most of the way there, although more complex libraries may need manual tweaking. * Add Python 2 as an [external package](https://spack.readthedocs.io/en/latest/build_settings.html#external-packages). Many Python libraries do not support Python 2, but you may be able to add older versions that did once upon a time. * Use Spack 0.19. Spack 0.19 is the last release to officially support Python 3.6 and older * Create and maintain your own [custom repository](https://spack.readthedocs.io/en/latest/repositories.html). Basically, you would need a package for Python 2 and any other Python 2-specific libraries you need.
28 lines
1.2 KiB
Python
28 lines
1.2 KiB
Python
# Copyright 2013-2022 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.package 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-setuptools", type="build")
|
|
depends_on("py-numpy", type=("build", "run"))
|
|
depends_on("cmake", type="run")
|
|
depends_on("swig", type=("build", "run"))
|