summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/bigdft-psolver
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2022-11-22 17:02:30 -0600
committerGitHub <noreply@github.com>2022-11-22 15:02:30 -0800
commitc5883fffd7310f704a8adc2f3666d7539cdfe4e1 (patch)
tree6878ac2edd4efab60b0655a25891e8f010c17f1a /var/spack/repos/builtin/packages/bigdft-psolver
parent4bf964e6b36e8756b014c2e30343507c1cb71b03 (diff)
downloadspack-c5883fffd7310f704a8adc2f3666d7539cdfe4e1.tar.gz
spack-c5883fffd7310f704a8adc2f3666d7539cdfe4e1.tar.bz2
spack-c5883fffd7310f704a8adc2f3666d7539cdfe4e1.tar.xz
spack-c5883fffd7310f704a8adc2f3666d7539cdfe4e1.zip
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.
Diffstat (limited to 'var/spack/repos/builtin/packages/bigdft-psolver')
-rw-r--r--var/spack/repos/builtin/packages/bigdft-psolver/package.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/var/spack/repos/builtin/packages/bigdft-psolver/package.py b/var/spack/repos/builtin/packages/bigdft-psolver/package.py
index a1cbcc84d9..95168b39cd 100644
--- a/var/spack/repos/builtin/packages/bigdft-psolver/package.py
+++ b/var/spack/repos/builtin/packages/bigdft-psolver/package.py
@@ -19,17 +19,12 @@ class BigdftPsolver(AutotoolsPackage, CudaPackage):
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")
variant("openmp", default=True, description="Enable OpenMP support")
variant("scalapack", default=True, description="Enable SCALAPACK 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("blas")
depends_on("lapack")
@@ -37,9 +32,8 @@ class BigdftPsolver(AutotoolsPackage, CudaPackage):
depends_on("mpi", when="+mpi")
depends_on("scalapack", when="+scalapack")
- 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))
- for vers in ["1.8.3", "1.9.0", "1.9.1", "1.9.2", "develop"]:
depends_on("bigdft-atlab@{0}".format(vers), when="@{0}".format(vers))
build_directory = "psolver"
@@ -92,8 +86,7 @@ class BigdftPsolver(AutotoolsPackage, CudaPackage):
else:
args.append("--without-openmp")
- if spec.satisfies("@1.8.3:") or spec.satisfies("@develop"):
- args.append("--with-atlab-libs=%s" % spec["bigdft-atlab"].prefix.lib)
+ args.append("--with-atlab-libs=%s" % spec["bigdft-atlab"].prefix.lib)
if "+cuda" in spec:
args.append("--enable-cuda-gpu")