
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.
31 lines
1.3 KiB
Python
31 lines
1.3 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 PyImgaug(PythonPackage):
|
|
"""A library for image augmentation in machine learning experiments,
|
|
particularly convolutional neural networks. Supports the augmentation of
|
|
images, keypoints/landmarks, bounding boxes, heatmaps and segmentation maps
|
|
in a variety of different ways."""
|
|
|
|
homepage = "https://github.com/aleju/imgaug"
|
|
pypi = "imgaug/imgaug-0.3.0.tar.gz"
|
|
|
|
version("0.4.0", sha256="46bab63ed38f8980630ff721a09ca2281b7dbd4d8c11258818b6ebcc69ea46c7")
|
|
version("0.3.0", sha256="e1354d41921f1b306b50c5141b4870f17e81b531cae2f5c3093da9dc4dcb3cf4")
|
|
|
|
depends_on("py-setuptools", type="build")
|
|
depends_on("py-imageio", type=("build", "run"))
|
|
depends_on("py-matplotlib", type=("build", "run"))
|
|
depends_on("py-numpy@1.15:", type=("build", "run"))
|
|
depends_on("py-scipy", type=("build", "run"))
|
|
depends_on("py-shapely", type=("build", "run"))
|
|
depends_on("py-six", type=("build", "run"))
|
|
depends_on("py-scikit-image@0.14.2:", type=("build", "run"))
|
|
depends_on("pil", type=("build", "run"))
|
|
depends_on("opencv+python3", type=("build", "run"))
|