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. --- .../repos/builtin/packages/bigdft-libabinit/package.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'var/spack/repos/builtin/packages/bigdft-libabinit/package.py') diff --git a/var/spack/repos/builtin/packages/bigdft-libabinit/package.py b/var/spack/repos/builtin/packages/bigdft-libabinit/package.py index 62791417c9..3c772493d7 100644 --- a/var/spack/repos/builtin/packages/bigdft-libabinit/package.py +++ b/var/spack/repos/builtin/packages/bigdft-libabinit/package.py @@ -20,36 +20,25 @@ class BigdftLibabinit(AutotoolsPackage): version("1.9.2", sha256="dc9e49b68f122a9886fa0ef09970f62e7ba21bb9ab1b86be9b7d7e22ed8fbe0f") version("1.9.1", sha256="3c334da26d2a201b572579fc1a7f8caad1cbf971e848a3e10d83bc4dc8c82e41") version("1.9.0", sha256="4500e505f5a29d213f678a91d00a10fef9dc00860ea4b3edf9280f33ed0d1ac8") - version("1.8.3", sha256="f112bb08833da4d11dd0f14f7ab10d740b62bc924806d77c985eb04ae0629909") - version("1.8.2", sha256="042e5a3b478b1a4c050c450a9b1be7bcf8e13eacbce4759b7f2d79268b298d61") - version("1.8.1", sha256="e09ff0ba381f6ffbe6a3c0cb71db5b73117874beb41f22a982a7e5ba32d018b3") variant("mpi", default=True, description="Enable MPI support") - depends_on("python@:2.8", type=("build", "run"), when="@:1.8.3") - depends_on("python@3.0:", type=("build", "run"), when="@1.9.0:") - depends_on("python@3.0:", type=("build", "run"), when="@develop") + depends_on("python@3.0:", type=("build", "run")) depends_on("mpi", when="+mpi") depends_on("libxc@:2.2.2", when="@:1.9.1") depends_on("libxc@:4.3.4", when="@1.9.1:") - depends_on("libxc@:4.3.4", when="@develop") - for vers in ["1.8.1", "1.8.2", "1.8.3", "1.9.0", "1.9.1", "1.9.2", "develop"]: + for vers in ["1.9.0", "1.9.1", "1.9.2", "develop"]: depends_on("bigdft-futile@{0}".format(vers), when="@{0}".format(vers)) - patch("m_libpaw_mpi.F90.patch", when="@:1.8.2") - build_directory = "libABINIT" def autoreconf(self, spec, prefix): autoreconf = which("autoreconf") with working_dir(self.build_directory): - if spec.satisfies("@:1.8.2"): - autoreconf("-i") - else: - autoreconf("-fi") + autoreconf("-fi") def configure_args(self): spec = self.spec -- cgit v1.2.3-70-g09d2