
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.
24 lines
996 B
Python
24 lines
996 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 PyAzureMgmtDatamigration(PythonPackage):
|
|
"""Microsoft Azure Data Migration Client Library for Python."""
|
|
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python"
|
|
pypi = "azure-mgmt-datamigration/azure-mgmt-datamigration-4.0.0.zip"
|
|
|
|
version("4.0.0", sha256="1efda568d67af911156591eb308432b5f9a56075b57ac0a5dd9f7aee17d79217")
|
|
version("0.1.0", sha256="e754928992743f54d999800a5e0679ee3e91d804d23a25f12c2e6f2f86cd05df")
|
|
|
|
depends_on("py-setuptools", type="build")
|
|
depends_on("py-msrest@0.5.0:", when="@4:", type=("build", "run"))
|
|
depends_on("py-msrestazure@0.4.32:1", when="@4:", type=("build", "run"))
|
|
depends_on("py-msrestazure@0.4.27:1", type=("build", "run"))
|
|
depends_on("py-azure-common@1.1:1", type=("build", "run"))
|