Remove deprecated versions from packages (#44157)

This commit is contained in:
Adam J. Stewart 2024-05-27 09:30:55 +02:00 committed by GitHub
parent c4b682b983
commit 2c1d5f9844
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 41 additions and 434 deletions

View File

@ -1,43 +0,0 @@
# Copyright 2013-2024 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 CandleBenchmarks(Package):
"""ECP-CANDLE Benchmarks"""
homepage = "https://github.com/ECP-CANDLE/Benchmarks"
url = "https://github.com/ECP-CANDLE/Benchmarks/archive/v0.1.tar.gz"
tags = ["proxy-app", "ecp-proxy-app"]
license("MIT")
version("0.5.1", sha256="3d8c4f5a8304ee238e93e88e871a8b4d47d6b377159c048ac6d3ed01b6ffc245")
version("0.1", sha256="767f74f43ee3a5d4e0f26750f2a96b8433e25a9cd4f2d29938ac8acf263ab58d")
version("0.0", sha256="faa0d24355071de0e375d72ed1a39dcf30006602210cf8cf09db568b5d0b679f")
variant("mpi", default=True, description="Build with MPI support")
extends("python")
depends_on("python@2.7:")
depends_on("py-theano +cuda", type=("build", "run"))
depends_on("py-keras", type=("build", "run"))
depends_on("py-matplotlib +image@:2.2.3", type=("build", "run"))
depends_on("py-tqdm", type=("build", "run"))
depends_on("py-scikit-learn", type=("build", "run"))
depends_on("opencv@3.2.0: +highgui +imgproc +jpeg +png +tiff ~dnn ~eigen ~gtk")
depends_on("py-mdanalysis", type=("build", "run"))
depends_on("py-mpi4py", when="+mpi", type=("build", "run"))
depends_on("py-h5py~mpi", when="~mpi", type=("build", "run"))
depends_on("py-h5py+mpi", when="+mpi", type=("build", "run"))
depends_on("py-requests", type=("build", "run"))
# see #3244, but use external for now
# depends_on('tensorflow')
def install(self, spec, prefix):
install_tree(self.stage.source_path, prefix.bin)

View File

@ -53,7 +53,6 @@ class EcpProxyApps(BundlePackage):
depends_on("picsarlite@0.1", when="@2.0:")
depends_on("thornado-mini@1.0", when="@2.0:")
depends_on("candle-benchmarks@0.1", when="+candle @2.0:2.1")
depends_on("laghos@2.0", when="@2.0:2.1")
depends_on("macsio@1.1", when="@2.0:")
depends_on("sw4lite@1.1", when="@2.0:")
@ -71,7 +70,6 @@ class EcpProxyApps(BundlePackage):
# Dependencies for versions 1.0:1.1
depends_on("amg2013@1.0", when="@1.0:1.1")
depends_on("candle-benchmarks@0.0", when="+candle @1.0:1.1")
depends_on("laghos@1.0", when="@1.0:1.1")
depends_on("macsio@1.0", when="@1.0:1.1")
depends_on("miniamr@1.4.0", when="@1.0:1.1")

View File

@ -1,142 +0,0 @@
# Copyright 2013-2024 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 Geopm(AutotoolsPackage):
"""GEOPM is an extensible power management framework targeting HPC.
The GEOPM package provides libgeopm, libgeopmpolicy and applications
geopmctl and geopmpolicy, as well as tools for postprocessing.
GEOPM is designed to be extended for new control algorithms and new
hardware power management features via its plugin infrastructure.
Note: GEOPM interfaces with hardware using Model Specific Registers (MSRs).
For propper usage make sure MSRs are made available directly or via the
msr-safe kernel module by your administrator."""
homepage = "https://geopm.github.io"
url = "https://github.com/geopm/geopm/releases/download/v1.0.0/geopm-1.0.0.tar.gz"
git = "https://github.com/geopm/geopm.git"
tags = ["e4s"]
license("BSD-3-Clause")
# Add additional proper versions and checksums here. "spack checksum geopm"
version("develop", branch="dev", deprecated=True)
version("master", branch="master", deprecated=True)
version(
"1.1.0",
sha256="5f9a4df37ef0d64c53d64829d46736803c9fe614afd8d2c70fe7a5ebea09f88e",
deprecated=True,
)
version(
"1.0.0",
sha256="24fe72265a7e44d62bdfe49467c49f0b7a649131ddda402d763c00a49765e1cb",
deprecated=True,
)
version(
"0.6.1",
sha256="0ca42853f90885bf213df190c3462b8675c143cc843aee0d8b8a0e30802b55a9",
deprecated=True,
)
version(
"0.6.0",
sha256="95ccf256c2b7cb35838978152479569d154347c3065af1639ed17be1399182d3",
deprecated=True,
)
version(
"0.5.1",
sha256="db247af55f7000b6e4628af099956349b68a637500b9d4fe8d8fb13687124d53",
deprecated=True,
)
version(
"0.5.0",
sha256="cdc123ea68b6d918dcc578a39a7a38275a5d711104364eb889abed15029f4060",
deprecated=True,
)
version(
"0.4.0",
sha256="7d165f5a5fe0f19ca586bd81a4631202effb542e9d762cc9cc86ad6ef7afcad9",
deprecated=True,
)
version(
"0.3.0",
sha256="73b45d36e7d2431d308038fc8c50a521a1d214c5ce105a17fba440f28509d907",
deprecated=True,
)
# Variants reflecting most ./configure --help options
variant("debug", default=False, description="Enable debug.")
variant(
"coverage",
default=False,
description="Enable test coverage support, enables debug by default.",
)
variant(
"overhead",
default=False,
description="Enable GEOPM to calculate and display time spent in GEOPM API calls.",
)
variant(
"procfs", default=True, description="Enable procfs (disable for OSes not using procfs)."
)
variant("mpi", default=True, description="Enable MPI dependent components.")
variant("fortran", default=True, description="Build fortran interface.")
variant("doc", default=True, description="Create man pages with ruby-ronn.")
variant("openmp", default=True, description="Build with OpenMP.")
variant("ompt", default=False, description="Use OpenMP Tools Interface.")
variant("gnu-ld", default=False, description="Assume C compiler uses gnu-ld.")
# Added dependencies.
depends_on("ruby-ronn", type="build", when="+doc")
depends_on("doxygen", type="build", when="+doc")
depends_on("mpi@2.2:", when="+mpi")
depends_on("m4", type="build")
depends_on("autoconf", type="build")
depends_on("automake", type="build")
depends_on("libtool", type="build")
depends_on("ruby-ronn", type="build", when="+doc")
depends_on("doxygen", type="build", when="+doc")
depends_on("numactl", when="@:1.0.0-rc2")
depends_on("mpi", when="+mpi")
depends_on("hwloc@1.11.9", when="@:0.5.1")
depends_on("json-c", when="@:0.9.9")
depends_on("py-cycler@0.10.0:", when="@1.0.0:", type=("build", "run"))
depends_on("py-pandas@0.22.0:", type=("build", "run"))
depends_on("py-tables@3.4.3:", when="@1.0.0:", type=("build", "run"))
depends_on("py-cffi@1.6.0:", when="@1.1.0:", type=("build", "run"))
depends_on("py-pyyaml@5.1.0:", when="@1.1.0:", type=("build", "run"))
depends_on("py-mock@3.0.0:", when="@1.1.0:", type=("build", "run"))
depends_on("py-future@0.17.1:", when="@1.1.0:", type=("build", "run"))
depends_on("py-numpy@1.14.3:", type=("build", "run"))
depends_on("py-setuptools@39.2.0:", when="@1.0.0:", type="build")
depends_on("py-natsort@5.3.2:", type=("build", "run"))
depends_on("py-psutil@5.4.8:", when="@1.0.0:", type=("build", "run"))
depends_on("py-pylint@1.9.5:", when="@1.1.0:", type=("build", "run"))
depends_on("py-matplotlib@2.2.3", when="@:1.0.0-rc2", type=("build", "run"))
depends_on("py-matplotlib@2.2.3:", when="@1.1.0:", type=("build", "run"))
parallel = False
def autoreconf(self, spec, prefix):
bash = which("bash")
bash("./autogen.sh")
def configure_args(self):
args = []
args.extend(self.enable_or_disable("debug"))
args.extend(self.enable_or_disable("coverage"))
args.extend(self.enable_or_disable("overhead"))
args.extend(self.enable_or_disable("procfs"))
args.extend(self.enable_or_disable("mpi"))
args.extend(self.enable_or_disable("fortran"))
args.extend(self.enable_or_disable("doc"))
args.extend(self.enable_or_disable("openmp"))
args.extend(self.enable_or_disable("ompt"))
args.extend(self.with_or_without("gnu-ld"))
return args

View File

@ -50,35 +50,22 @@ class PyJax(PythonPackage):
version("0.4.5", sha256="1633e56d34b18ddfa7d2a216ce214fa6fa712d36552532aaa71da416aede7268")
version("0.4.4", sha256="39b07e07343ed7c74492ee5e75db77456d3afdd038a322671f09fc748f6392cb")
version("0.4.3", sha256="d43f08f940aa30eb339965cfb3d6bee2296537b0dc2f0c65ccae3009279529ae")
version(
"0.3.23",
sha256="bff436e15552a82c0ebdef32737043b799e1e10124423c57a6ae6118c3a7b6cd",
deprecated=True,
)
version(
"0.2.25",
sha256="822e8d1e06257eaa0fdc4c0a0686c4556e9f33647fa2a766755f984786ae7446",
deprecated=True,
)
depends_on("py-setuptools", type="build")
with default_args(type=("build", "run")):
# setup.py
depends_on("python@3.9:", when="@0.4.14:")
depends_on("python@3.8:", when="@0.4:")
depends_on("py-ml-dtypes@0.2:", when="@0.4.14:")
depends_on("py-ml-dtypes@0.1:", when="@0.4.9:")
depends_on("py-ml-dtypes@0.0.3:", when="@0.4.7:")
depends_on("py-numpy@1.22:", when="@0.4.14:")
depends_on("py-numpy@1.21:", when="@0.4.7:")
depends_on("py-numpy@1.20:", when="@0.3:")
depends_on("py-numpy@1.18:")
depends_on("py-opt-einsum")
depends_on("py-scipy@1.9:", when="@0.4.19:")
depends_on("py-scipy@1.7:", when="@0.4.7:")
depends_on("py-scipy@1.5:", when="@0.3:")
depends_on("py-scipy@1.2.1:")
depends_on("py-importlib-metadata@4.6:", when="@0.4.11: ^python@:3.9")
# jax/_src/lib/__init__.py
@ -110,7 +97,6 @@ class PyJax(PythonPackage):
"0.4.5",
"0.4.4",
"0.4.3",
"0.3.23",
]:
depends_on(f"py-jaxlib@:{v}", when=f"@{v}")
@ -126,16 +112,3 @@ class PyJax(PythonPackage):
depends_on("py-jaxlib@0.4.4:", when="@0.4.5:")
depends_on("py-jaxlib@0.4.2:", when="@0.4.3:")
depends_on("py-jaxlib@0.4.1:", when="@0.4.2:")
depends_on("py-jaxlib@0.3.22:", when="@0.3.24:")
depends_on("py-jaxlib@0.3.15:", when="@0.3.18:")
depends_on("py-jaxlib@0.3.14:", when="@0.3.15:")
depends_on("py-jaxlib@0.3.7:", when="@0.3.8:")
depends_on("py-jaxlib@0.3.2:", when="@0.3.7:")
depends_on("py-jaxlib@0.3.0:", when="@0.3.2:")
depends_on("py-jaxlib@0.1.74:", when="@0.2.26:")
depends_on("py-jaxlib@0.1.69:", when="@0.2.18:")
# Historical dependencies
depends_on("py-absl-py", when="@:0.3")
depends_on("py-typing-extensions", when="@:0.3")
depends_on("py-etils+epath", when="@0.3")

View File

@ -36,16 +36,6 @@ class PyJaxlib(PythonPackage, CudaPackage):
version("0.4.6", sha256="2c9bf8962815bc54ef524e33dc8eda9d165d379fe87e0df210f316adead27787")
version("0.4.4", sha256="881f402c7983b56b185e182d5315dd64c9f5320be96213d0415996ece1826806")
version("0.4.3", sha256="2104735dc22be2b105e5517bd5bc6ae97f40e8e9e54928cac1585c6112a3d910")
version(
"0.3.22",
sha256="680a6f5265ba26d5515617a95ae47244005366f879a5c321782fde60f34e6d0d",
deprecated=True,
)
version(
"0.1.74",
sha256="bbc78c7a4927012dcb1b7cd135c7521f782d7dad516a2401b56d3190f81afe35",
deprecated=True,
)
variant("cuda", default=True, description="Build with CUDA enabled")
variant("nccl", default=True, description="Build with NCCL enabled", when="+cuda")
@ -56,12 +46,9 @@ class PyJaxlib(PythonPackage, CudaPackage):
depends_on("cuda@12.1:", when="@0.4.26:")
depends_on("cuda@11.8:", when="@0.4.11:")
depends_on("cuda@11.4:", when="@0.4.0:0.4.7")
depends_on("cuda@11.1:", when="@0.3")
depends_on("cuda@11.1:11.7.0", when="@0.1")
depends_on("cudnn@8.9:8", when="@0.4.26:")
depends_on("cudnn@8.8:", when="@0.4.11:")
depends_on("cudnn@8.2:", when="@0.4:0.4.7")
depends_on("cudnn@8.0.5:")
with when("+nccl"):
depends_on("nccl@2.18:", when="@0.4.26:")
@ -73,10 +60,6 @@ class PyJaxlib(PythonPackage, CudaPackage):
depends_on("bazel@6.5.0", when="@0.4.28:")
depends_on("bazel@6.1.2", when="@0.4.11:0.4.27")
depends_on("bazel@5.1.1", when="@0.3.7:0.4.10")
depends_on("bazel@5.1.0", when="@0.3.5")
depends_on("bazel@5.0.0", when="@0.3.0:0.3.2")
depends_on("bazel@4.2.1", when="@0.1.75:0.1.76")
depends_on("bazel@4.1.0", when="@0.1.70:0.1.74")
# jaxlib/setup.py
depends_on("py-setuptools")
@ -97,15 +80,10 @@ class PyJaxlib(PythonPackage, CudaPackage):
depends_on("py-numpy@1.22:", when="@0.4.14:")
depends_on("py-numpy@1.21:", when="@0.4.7:")
depends_on("py-numpy@1.20:", when="@0.3:")
depends_on("py-numpy@1.18:")
depends_on("py-ml-dtypes@0.2:", when="@0.4.14:")
depends_on("py-ml-dtypes@0.1:", when="@0.4.9:")
depends_on("py-ml-dtypes@0.0.3:", when="@0.4.7:")
# Historical dependencies
depends_on("py-absl-py", when="@:0.3")
depends_on("py-flatbuffers@1.12:2", when="@0.1")
conflicts(
"cuda_arch=none",
when="+cuda",

View File

@ -1,16 +0,0 @@
diff --git a/setupext.py b/setupext.py
index 6d363012eb4..00ef3fe5a3d 100644
--- a/setupext.py
+++ b/setupext.py
@@ -162,8 +162,10 @@ def get_include_dirs():
"""
include_dirs = [os.path.join(d, 'include') for d in get_base_dirs()]
if sys.platform != 'win32':
- # gcc includes this dir automatically, so also look for headers in
+ # gcc includes these dirs automatically, so also look for headers in
# these dirs
+ include_dirs.extend(
+ os.environ.get('CPATH', '').split(os.pathsep))
include_dirs.extend(
os.environ.get('CPLUS_INCLUDE_PATH', '').split(os.pathsep))
return include_dirs

View File

@ -66,45 +66,12 @@ class PyMatplotlib(PythonPackage):
version("3.0.2", sha256="c94b792af431f6adb6859eb218137acd9a35f4f7442cea57e4a59c54751c36af")
version("3.0.1", sha256="70f8782c50ac2c7617aad0fa5ba59fc49f690a851d6afc0178813c49767644dd")
version("3.0.0", sha256="b4e2333c98a7c2c1ff6eb930cd2b57d4b818de5437c5048802096b32f66e65f9")
version(
"2.2.5",
sha256="a3037a840cd9dfdc2df9fee8af8f76ca82bfab173c0f9468193ca7a89a2b60ea",
deprecated=True,
)
version(
"2.2.4",
sha256="029620799e581802961ac1dcff5cb5d3ee2f602e0db9c0f202a90495b37d2126",
deprecated=True,
)
version(
"2.2.3",
sha256="7355bf757ecacd5f0ac9dd9523c8e1a1103faadf8d33c22664178e17533f8ce5",
deprecated=True,
)
version(
"2.2.2",
sha256="4dc7ef528aad21f22be85e95725234c5178c0f938e2228ca76640e5e84d8cde8",
deprecated=True,
)
version(
"2.0.2",
sha256="0ffbc44faa34a8b1704bc108c451ecf87988f900ef7ce757b8e2e84383121ff1",
deprecated=True,
)
version(
"2.0.0",
sha256="36cf0985829c1ab2b8b1dae5e2272e53ae681bf33ab8bedceed4f0565af5f813",
deprecated=True,
)
# https://matplotlib.org/stable/users/explain/figure/backends.html
# matplotlib 3.9+: lib/matplotlib/backends/registry.py
# matplotlib 3.8-: lib/matplotlib/rcsetup.py
all_backends = [
# GTK
conditional("gtk", when="@:2"),
conditional("gtkagg", when="@:2"),
conditional("gtkcairo", when="@:2"),
"gtk3agg",
"gtk3cairo",
conditional("gtk4agg", when="@3.5:"),
@ -118,9 +85,9 @@ class PyMatplotlib(PythonPackage):
conditional("qtagg", when="@3.5:"),
conditional("qtcairo", when="@3.5:"),
conditional("qt4agg", when="@:3.4"),
conditional("qt4cairo", when="@2.2:3.4"),
conditional("qt4cairo", when="@:3.4"),
"qt5agg",
conditional("qt5cairo", when="@2.2:"),
"qt5cairo",
# Tk
"tkagg",
"tkcairo",
@ -129,11 +96,10 @@ class PyMatplotlib(PythonPackage):
# Wx
"wx",
"wxagg",
conditional("wxcairo", when="@2.2:"),
"wxcairo",
# Headless
"agg",
"cairo",
conditional("gdk", when="@:2"),
"pdf",
"pgf",
"ps",
@ -174,7 +140,7 @@ class PyMatplotlib(PythonPackage):
depends_on("py-cycler@0.10:", type=("build", "run"))
depends_on("py-fonttools@4.22:", when="@3.5:", type=("build", "run"))
depends_on("py-kiwisolver@1.3.1:", when="@3.8.1:", type=("build", "run"))
depends_on("py-kiwisolver@1.0.1:", when="@2.2:", type=("build", "run"))
depends_on("py-kiwisolver@1.0.1:", type=("build", "run"))
depends_on("py-numpy@1.23:", when="@3.9:", type=("build", "link", "run"))
depends_on("py-numpy@1.21:", when="@3.8.4", type=("build", "link", "run"))
depends_on("py-numpy@1.21:1", when="@3.8.0:3.8.3", type=("build", "link", "run"))
@ -196,10 +162,6 @@ class PyMatplotlib(PythonPackage):
depends_on("py-python-dateutil@2.1:", type=("build", "run"))
depends_on("py-importlib-resources@3.2:", when="@3.7: ^python@:3.9", type=("build", "run"))
# Historical dependencies
depends_on("py-pytz", type=("build", "run"), when="@:2")
depends_on("py-six@1.10.0:", type=("build", "run"), when="@2")
# Optional dependencies
# Backends
# Tk
@ -220,14 +182,13 @@ class PyMatplotlib(PythonPackage):
depends_on("py-pyqt6@6.1:", when="backend=" + backend, type="run")
depends_on("qt-base+gui+widgets", when="backend=" + backend, type="run")
# GTK
for backend in ["gtk", "gtkagg", "gtkcairo", "gtk3agg", "gtk3cairo", "gtk4agg", "gtk4cairo"]:
for backend in ["gtk3agg", "gtk3cairo", "gtk4agg", "gtk4cairo"]:
depends_on("py-pygobject", when="backend=" + backend, type="run")
depends_on("py-pycairo@1.14:", when="@3.6: backend=" + backend, type="run")
depends_on("py-pycairo@1.11:", when="@3.3: backend=" + backend, type="run")
depends_on("py-pycairo", when="backend=" + backend, type="run")
# Cairo
for backend in [
"gtkcairo",
"gtk3cairo",
"gtk4cairo",
"qtcairo",
@ -296,8 +257,6 @@ class PyMatplotlib(PythonPackage):
# https://github.com/matplotlib/matplotlib/pull/21662
patch("matplotlibrc.patch", when="@3.5.0")
# Patch to pick up correct freetype headers
patch("freetype-include-path.patch", when="@2.2.2:2.9.9")
@property
def archive_files(self):

View File

@ -19,33 +19,23 @@ class PyMultiqc(PythonPackage):
version("1.15", sha256="ce5359a12226cf4ce372c6fdad142cfe2ae7501ffa97ac7aab544ced4db5ea3c")
version("1.14", sha256="dcbba405f0c9521ed2bbd7e8f7a9200643047311c9619878b81d167300149362")
version("1.13", sha256="0564fb0f894e6ca0822a0f860941b3ed2c33dce407395ac0c2103775d45cbfa0")
version("1.7", sha256="02e6a7fac7cd9ed036dcc6c92b8f8bcacbd28983ba6be53afb35e08868bd2d68")
version("1.5", sha256="fe0ffd2b0d1067365ba4e54ae8991f2f779c7c684b037549b617020ea883310a")
version("1.3", sha256="cde17845680131e16521ace04235bb9496c78c44cdc7b5a0fb6fd93f4ad7a13b")
version("1.0", sha256="1a49331a3d3f2e591a6e9902bc99b16e9205731f0cd2d6eaeee0da3d0f0664c9")
depends_on("python@2.7:", when="@:1.7", type=("build", "run"))
depends_on("python@3:", when="@1.9:", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-matplotlib@2.1.1:", type=("build", "run"), when="@1.13:")
depends_on("py-matplotlib@2.1.1:2", type=("build", "run"), when="@1.7")
depends_on("py-matplotlib@:2.1.0", type=("build", "run"), when="@1.5")
depends_on("py-matplotlib", type=("build", "run"), when="@:1.3")
depends_on("py-networkx@2.5.1:", type=("build", "run"), when="@1.13:")
depends_on("py-networkx@:1", type=("build", "run"), when="@1.3")
depends_on("py-matplotlib@2.1.1:", type=("build", "run"))
depends_on("py-networkx@2.5.1:", type=("build", "run"))
depends_on("py-numpy", type=("build", "run"))
depends_on("py-click", type=("build", "run"))
depends_on("py-coloredlogs", type=("build", "run"), when="@1.13:")
depends_on("py-coloredlogs", type=("build", "run"))
depends_on("py-future@0.14.1:", type=("build", "run"))
depends_on("py-jinja2@3.0.0:", type=("build", "run"), when="@1.14:")
depends_on("py-jinja2@2.9:", type=("build", "run"), when="@:1.13")
depends_on("py-lzstring", type=("build", "run"))
depends_on("py-markdown", type=("build", "run"), when="@1.3:")
depends_on("py-markdown", type=("build", "run"))
depends_on("py-pyyaml", type=("build", "run"))
depends_on("py-pyyaml@4:", type=("build", "run"), when="@1.13:")
depends_on("py-requests", type=("build", "run"), when="@1.3:")
depends_on("py-rich@10:", type=("build", "run"), when="@1.13:")
depends_on("py-rich-click", type=("build", "run"), when="@1.13:")
depends_on("py-pyyaml@4:", type=("build", "run"))
depends_on("py-requests", type=("build", "run"))
depends_on("py-rich@10:", type=("build", "run"))
depends_on("py-rich-click", type=("build", "run"))
depends_on("py-simplejson", type=("build", "run"))
depends_on("py-spectra@0.0.10:", type=("build", "run"), when="@1.5:")
depends_on("py-spectra@0.0.10:", type=("build", "run"))
depends_on("py-spectra", type=("build", "run"))

View File

@ -20,14 +20,8 @@ class PyRuff(PythonPackage):
version("0.3.7", sha256="d5c1aebee5162c2226784800ae031f660c350e7a3402c4d1f8ea4e97e232e3ba")
version("0.3.0", sha256="0886184ba2618d815067cf43e005388967b67ab9c80df52b32ec1152ab49f53a")
version("0.1.6", sha256="1b09f29b16c6ead5ea6b097ef2764b42372aebe363722f1605ecbcd2b9207184")
version(
"0.0.276",
sha256="d456c86eb6ce9225507f24fcc7bf72fa031bb7cc750023310e62889bf4ad4b6a",
deprecated=True,
)
depends_on("py-maturin@1", type="build")
# Found in Cargo.toml
depends_on("rust@1.71:", when="@0.1.6:", type="build")
depends_on("rust@1.70:", when="@0.0.276:", type="build")
depends_on("rust@1.71:", type="build")

View File

@ -17,16 +17,6 @@ class PyTorchCluster(PythonPackage):
maintainers("adamjstewart")
version("1.6.3", sha256="78d5a930a5bbd0d8788df8c6d66addd68d6dd292fe3edb401e3dacba26308152")
version(
"1.5.8",
sha256="a0a32f63faac40a026ab1e9da31f6babdb4d937e53be40bd1c91d9b5a286eee6",
deprecated=True,
)
version(
"1.5.7",
sha256="62a3ec1bebadda1a4a2c867203f4c957b9c0b9d11ffb03b40b8ea9f95a0a4d3b",
deprecated=True,
)
depends_on("python", type=("build", "link", "run"))
depends_on("py-setuptools", type="build")
@ -35,26 +25,12 @@ class PyTorchCluster(PythonPackage):
# Undocumented dependencies
depends_on("py-torch", type=("build", "link", "run"))
# https://github.com/rusty1s/pytorch_cluster/issues/120
depends_on("py-torch~openmp", when="@:1.5 %apple-clang", type=("build", "link", "run"))
# Historical dependencies
depends_on("py-pytest-runner", when="@:1.5", type="build")
def setup_build_environment(self, env):
if self.spec.satisfies("@1.5.9:"):
if "+cuda" in self.spec["py-torch"]:
env.set("FORCE_CUDA", 1)
env.set("FORCE_ONLY_CUDA", 0)
env.set("FORCE_ONLY_CPU", 0)
else:
env.set("FORCE_CUDA", 0)
env.set("FORCE_ONLY_CUDA", 0)
env.set("FORCE_ONLY_CPU", 1)
if "+cuda" in self.spec["py-torch"]:
env.set("FORCE_CUDA", 1)
env.set("FORCE_ONLY_CUDA", 0)
env.set("FORCE_ONLY_CPU", 0)
else:
if "+cuda" in self.spec["py-torch"]:
env.set("FORCE_CUDA", 1)
env.set("FORCE_CPU", 0)
else:
env.set("FORCE_CUDA", 0)
env.set("FORCE_CPU", 1)
env.set("FORCE_CUDA", 0)
env.set("FORCE_ONLY_CUDA", 0)
env.set("FORCE_ONLY_CPU", 1)

View File

@ -18,48 +18,20 @@ class PyTorchGeometric(PythonPackage):
maintainers("adamjstewart")
version("2.5.3", sha256="ad0761650c8fa56cdc46ee61c564fd4995f07f079965fe732b3a76d109fd3edc")
version(
"2.1.0.post1",
sha256="32347402076ccf60fa50312825178f1e3e5ce5e7b3b3a8b2729ac699da24525d",
deprecated=True,
)
version(
"1.6.3",
sha256="347f693bebcc8a621eda4867dafab91c04db5f596d7ed7ecb89b242f8ab5c6a1",
deprecated=True,
)
version(
"1.6.0",
sha256="fbf43fe15421c9affc4fb361ba4db55cb9d3c64d0c29576bb58d332bf6d27fef",
deprecated=True,
)
depends_on("py-flit-core@3.2:3", when="@2.4:", type="build")
depends_on("py-flit-core@3.2:3", type="build")
with default_args(type=("build", "run")):
depends_on("py-tqdm")
depends_on("py-numpy")
depends_on("py-scipy")
depends_on("py-fsspec", when="@2.5:")
depends_on("py-fsspec")
depends_on("py-jinja2")
depends_on("py-aiohttp", when="@2.5:")
depends_on("py-aiohttp")
depends_on("py-requests")
depends_on("py-pyparsing", when="@1.7.2:")
depends_on("py-pyparsing")
depends_on("py-scikit-learn")
depends_on("py-psutil@5.8:", when="@2.2:")
depends_on("py-psutil@5.8:")
# Undocumented dependencies
depends_on("py-torch")
# Historical dependencies
depends_on("py-setuptools", type="build", when="@:2.3")
with when("@:1"):
depends_on("py-pytest-runner", type="build")
depends_on("py-networkx", type=("build", "run"))
depends_on("py-python-louvain", type=("build", "run"), when="@1.6.2:")
depends_on("py-numba", type=("build", "run"))
depends_on("py-pandas", type=("build", "run"))
depends_on("py-rdflib", type=("build", "run"))
depends_on("py-googledrivedownloader", type=("build", "run"))
depends_on("py-h5py~mpi", type=("build", "run"))
depends_on("py-ase", type=("build", "run"))

View File

@ -17,11 +17,6 @@ class PyTorchScatter(PythonPackage):
maintainers("adamjstewart")
version("2.1.2", sha256="69b3aa435f2424ac6a1bfb6ff702da6eb73b33ca0db38fb26989c74159258e47")
version(
"2.0.5",
sha256="148fbe634fb9e9465dbde2ab337138f63650ed8abbac42bb3f565e3fe92e9b2f",
deprecated=True,
)
depends_on("python", type=("build", "link", "run"))
depends_on("py-setuptools", type="build")
@ -29,23 +24,12 @@ class PyTorchScatter(PythonPackage):
# Undocumented dependencies
depends_on("py-torch", type=("build", "link", "run"))
# Historical dependencies
depends_on("py-pytest-runner", type="build", when="@:2.0.7")
def setup_build_environment(self, env):
if self.spec.satisfies("@2.0.6:"):
if "+cuda" in self.spec["py-torch"]:
env.set("FORCE_CUDA", 1)
env.set("FORCE_ONLY_CUDA", 0)
env.set("FORCE_ONLY_CPU", 0)
else:
env.set("FORCE_CUDA", 0)
env.set("FORCE_ONLY_CUDA", 0)
env.set("FORCE_ONLY_CPU", 1)
if "+cuda" in self.spec["py-torch"]:
env.set("FORCE_CUDA", 1)
env.set("FORCE_ONLY_CUDA", 0)
env.set("FORCE_ONLY_CPU", 0)
else:
if "+cuda" in self.spec["py-torch"]:
env.set("FORCE_CUDA", 1)
env.set("FORCE_CPU", 0)
else:
env.set("FORCE_CUDA", 0)
env.set("FORCE_CPU", 1)
env.set("FORCE_CUDA", 0)
env.set("FORCE_ONLY_CUDA", 0)
env.set("FORCE_ONLY_CPU", 1)

View File

@ -17,11 +17,6 @@ class PyTorchSplineConv(PythonPackage):
maintainers("adamjstewart")
version("1.2.2", sha256="ed45a81da29f774665dbdd4709d7e534cdf16d2e7006dbd06957f35bd09661b2")
version(
"1.2.0",
sha256="b7a1788004f6c6143d47040f2dd7d8a579a0c69a0cb0b5d7537416bf37c082a5",
deprecated=True,
)
depends_on("python", type=("build", "link", "run"))
depends_on("py-setuptools", type="build")
@ -29,23 +24,12 @@ class PyTorchSplineConv(PythonPackage):
# Undocumented dependencies
depends_on("py-torch", type=("build", "link", "run"))
# Historical dependencies
depends_on("py-pytest-runner", type="build", when="@:1.2.1")
def setup_build_environment(self, env):
if self.spec.satisfies("@1.2.1:"):
if "+cuda" in self.spec["py-torch"]:
env.set("FORCE_CUDA", 1)
env.set("FORCE_ONLY_CUDA", 0)
env.set("FORCE_ONLY_CPU", 0)
else:
env.set("FORCE_CUDA", 0)
env.set("FORCE_ONLY_CUDA", 0)
env.set("FORCE_ONLY_CPU", 1)
if "+cuda" in self.spec["py-torch"]:
env.set("FORCE_CUDA", 1)
env.set("FORCE_ONLY_CUDA", 0)
env.set("FORCE_ONLY_CPU", 0)
else:
if "+cuda" in self.spec["py-torch"]:
env.set("FORCE_CUDA", 1)
env.set("FORCE_CPU", 0)
else:
env.set("FORCE_CUDA", 0)
env.set("FORCE_CPU", 1)
env.set("FORCE_CUDA", 0)
env.set("FORCE_ONLY_CUDA", 0)
env.set("FORCE_ONLY_CPU", 1)