
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.
23 lines
846 B
Python
23 lines
846 B
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 PyTapPy(PythonPackage):
|
|
"""Python TAP interface module for unit tests"""
|
|
|
|
homepage = "https://github.com/python-tap/tappy"
|
|
pypi = "tap.py/tap.py-3.0.tar.gz"
|
|
|
|
version("3.0", sha256="f5eeeeebfd64e53d32661752bb4c288589a3babbb96db3f391a4ec29f1359c70")
|
|
version("2.6.2", sha256="5f219d92dbad5e378f8f7549cdfe655b0d5fd2a778f9c83bee51b61c6ca40efb")
|
|
|
|
extends("python", ignore="bin/nosetests|bin/pygmentize")
|
|
|
|
depends_on("python@3.5:3.7", when="@3.0:", type=("build", "run"))
|
|
depends_on("python@2.7:2.8,3.5:3.7", type=("build", "run"))
|
|
depends_on("py-setuptools", type=("build", "run"))
|