From c5883fffd7310f704a8adc2f3666d7539cdfe4e1 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Tue, 22 Nov 2022 17:02:30 -0600 Subject: Python: drop EOL versions (#33898) 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. --- var/spack/repos/builtin/packages/py-pytools/package.py | 1 - 1 file changed, 1 deletion(-) (limited to 'var/spack/repos/builtin/packages/py-pytools/package.py') diff --git a/var/spack/repos/builtin/packages/py-pytools/package.py b/var/spack/repos/builtin/packages/py-pytools/package.py index 30e2fc0f70..96884b3db6 100644 --- a/var/spack/repos/builtin/packages/py-pytools/package.py +++ b/var/spack/repos/builtin/packages/py-pytools/package.py @@ -26,7 +26,6 @@ class PyPytools(PythonPackage): depends_on("py-six@1.8.0:", when="@:2019.1.1", type=("build", "run")) depends_on("py-numpy@1.6.0:", when="@:2021.2.9", type=("build", "run")) depends_on("py-numpy@1.6.0:", when="@2022.1.12: +numpy", type=("build", "run")) - depends_on("py-dataclasses@0.7:", when="@2021.2.9: ^python@:3.6", type=("build", "run")) depends_on("py-typing-extensions@4.0:", when="@2021.2.9: ^python@:3.10", type=("build", "run")) depends_on("python@2.6:2.8,3.4:", type=("build", "run")) depends_on("python@3.6:3", when="@2021.2.9:", type=("build", "run")) -- cgit v1.2.3-70-g09d2