
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.
30 lines
1.4 KiB
Python
30 lines
1.4 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 PyNibabel(PythonPackage):
|
|
"""Access a multitude of neuroimaging data formats"""
|
|
|
|
homepage = "https://nipy.org/nibabel"
|
|
pypi = "nibabel/nibabel-3.2.1.tar.gz"
|
|
git = "https://github.com/nipy/nibabel"
|
|
|
|
version("4.0.2", sha256="45c49b5349351b45f6c045a91aa02b4f0d367686ff3284632ef95ac65b930786")
|
|
version("3.2.2", sha256="b0dcc174b30405ce9e8fec1eab3cbbb20f5c5e4920976c08b22e050b7c124f94")
|
|
version("3.2.1", sha256="4d2ff9426b740011a1c916b54fc25da9348282e727eaa2ea163f42e00f1fc29e")
|
|
version("2.4.1", sha256="f165ff1cb4464902d6594eb2694e2cfb6f8b9fe233b856c976c3cff623ee0e17")
|
|
|
|
depends_on("python@3.7:", when="@4:", type=("build", "run"))
|
|
depends_on("python@3.6:", when="@3.1:", type=("build", "run"))
|
|
depends_on("py-setuptools@30.3.0:", type=("build", "run"))
|
|
depends_on("py-numpy@1.17:", when="@4:", type=("build", "run"))
|
|
depends_on("py-numpy@1.14:", when="@3.2:", type=("build", "run"))
|
|
depends_on("py-numpy@1.8:", type=("build", "run"))
|
|
depends_on("py-packaging@17:", when="@4:", type=("build", "run"))
|
|
depends_on("py-packaging@14.3:", when="@3.1:", type=("build", "run"))
|
|
depends_on("py-six@1.3:", when="@:2.5", type=("build", "run"))
|