Update PyTorch ecosystem (#40321)
* Update PyTorch ecosystem * py-pybind11: better documentation of supported compilers * py-torchdata: add v0.7.0 * Black fixes * py-torchtext: fix Python reqs * py-horovod: py-torch 2.1.0 not yet supported
This commit is contained in:
parent
4d51810888
commit
da10487219
7 changed files with 139 additions and 249 deletions
|
@ -225,6 +225,8 @@ class PyHorovod(PythonPackage, CudaPackage):
|
|||
conflicts(
|
||||
"controllers=gloo", when="@:0.20.0 platform=darwin", msg="Gloo cannot be compiled on MacOS"
|
||||
)
|
||||
# FIXME
|
||||
conflicts("^py-torch@2.1:")
|
||||
|
||||
# https://github.com/horovod/horovod/pull/1835
|
||||
patch("fma.patch", when="@0.19.0:0.19.1")
|
||||
|
|
|
@ -27,6 +27,8 @@ class PyPybind11(CMakePackage, PythonExtension):
|
|||
maintainers("ax3l")
|
||||
|
||||
version("master", branch="master")
|
||||
version("2.11.1", sha256="d475978da0cdc2d43b73f30910786759d593a9d8ee05b1b6846d1eb16c6d2e0c")
|
||||
version("2.11.0", sha256="7af30a84c6810e721829c4646e31927af9d8861e085aa5dd37c3c8b8169fcda1")
|
||||
version("2.10.4", sha256="832e2f309c57da9c1e6d4542dedd34b24e4192ecb4d62f6f4866a737454c9970")
|
||||
version("2.10.1", sha256="111014b516b625083bef701df7880f78c2243835abdb263065b6b59b960b6bad")
|
||||
version("2.10.0", sha256="eacf582fa8f696227988d08cfc46121770823839fe9e301a20fbce67e7cd70ec")
|
||||
|
@ -52,9 +54,6 @@ class PyPybind11(CMakePackage, PythonExtension):
|
|||
|
||||
depends_on("py-setuptools@42:", type="build")
|
||||
depends_on("py-pytest", type="test")
|
||||
depends_on("python@2.7:2.8,3.5:", type=("build", "run"))
|
||||
depends_on("python@3.6:", when="@2.10.0:", type=("build", "run"))
|
||||
|
||||
depends_on("py-pip", type="build")
|
||||
depends_on("py-wheel", type="build")
|
||||
extends("python")
|
||||
|
@ -64,10 +63,12 @@ class PyPybind11(CMakePackage, PythonExtension):
|
|||
depends_on("cmake@3.13:", type="build")
|
||||
depends_on("cmake@3.18:", type="build", when="@2.6.0:")
|
||||
|
||||
# compiler support
|
||||
conflicts("%gcc@:4.7")
|
||||
# https://github.com/pybind/pybind11/#supported-compilers
|
||||
conflicts("%clang@:3.2")
|
||||
conflicts("%intel@:16")
|
||||
conflicts("%apple-clang@:4")
|
||||
conflicts("%gcc@:4.7")
|
||||
conflicts("%msvc@:16")
|
||||
conflicts("%intel@:17")
|
||||
|
||||
# https://github.com/pybind/pybind11/pull/1995
|
||||
@when("@:2.4")
|
||||
|
|
|
@ -11,11 +11,11 @@
|
|||
|
||||
|
||||
class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
|
||||
"""Tensors and Dynamic neural networks in Python
|
||||
with strong GPU acceleration."""
|
||||
"""Tensors and Dynamic neural networks in Python with strong GPU acceleration."""
|
||||
|
||||
homepage = "https://pytorch.org/"
|
||||
git = "https://github.com/pytorch/pytorch.git"
|
||||
submodules = True
|
||||
|
||||
maintainers("adamjstewart")
|
||||
|
||||
|
@ -23,89 +23,36 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
|
|||
# core libraries to ensure that the package was successfully installed.
|
||||
import_modules = ["torch", "torch.autograd", "torch.nn", "torch.utils"]
|
||||
|
||||
version("main", branch="main", submodules=True)
|
||||
version("master", branch="main", submodules=True, deprecated=True)
|
||||
version(
|
||||
"2.0.1", tag="v2.0.1", commit="e9ebda29d87ce0916ab08c06ab26fd3766a870e5", submodules=True
|
||||
)
|
||||
version(
|
||||
"2.0.0", tag="v2.0.0", commit="c263bd43e8e8502d4726643bc6fd046f0130ac0e", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.13.1", tag="v1.13.1", commit="49444c3e546bf240bed24a101e747422d1f8a0ee", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.13.0", tag="v1.13.0", commit="7c98e70d44abc7a1aead68b6ea6c8adc8c554db5", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.12.1", tag="v1.12.1", commit="664058fa83f1d8eede5d66418abff6e20bd76ca8", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.12.0", tag="v1.12.0", commit="67ece03c8cd632cce9523cd96efde6f2d1cc8121", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.11.0", tag="v1.11.0", commit="bc2c6edaf163b1a1330e37a6e34caf8c553e4755", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.10.2", tag="v1.10.2", commit="71f889c7d265b9636b93ede9d651c0a9c4bee191", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.10.1", tag="v1.10.1", commit="302ee7bfb604ebef384602c56e3853efed262030", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.10.0", tag="v1.10.0", commit="36449ea93134574c2a22b87baad3de0bf8d64d42", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.9.1", tag="v1.9.1", commit="dfbd030854359207cb3040b864614affeace11ce", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.9.0", tag="v1.9.0", commit="d69c22dd61a2f006dcfe1e3ea8468a3ecaf931aa", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.8.2", tag="v1.8.2", commit="e0495a7aa104471d95dc85a1b8f6473fbcc427a8", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.8.1", tag="v1.8.1", commit="56b43f4fec1f76953f15a627694d4bba34588969", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.8.0", tag="v1.8.0", commit="37c1f4a7fef115d719104e871d0cf39434aa9d56", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.7.1", tag="v1.7.1", commit="57bffc3a8e4fee0cce31e1ff1f662ccf7b16db57", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.7.0", tag="v1.7.0", commit="e85d494707b835c12165976b8442af54b9afcb26", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.6.0", tag="v1.6.0", commit="b31f58de6fa8bbda5353b3c77d9be4914399724d", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.5.1", tag="v1.5.1", commit="3c31d73c875d9a4a6ea8a843b9a0d1b19fbe36f3", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.5.0", tag="v1.5.0", commit="4ff3872a2099993bf7e8c588f7182f3df777205b", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.4.1", tag="v1.4.1", commit="74044638f755cd8667bedc73da4dbda4aa64c948", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.3.1", tag="v1.3.1", commit="ee77ccbb6da4e2efd83673e798acf7081bc03564", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.3.0", tag="v1.3.0", commit="de394b672d0346f2f387a8bb1a1280d5d2eaf9cb", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.2.0", tag="v1.2.0", commit="8554416a199c4cec01c60c7015d8301d2bb39b64", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.1.0", tag="v1.1.0", commit="142c973f4179e768164cd578951489e89021b29c", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.0.1", tag="v1.0.1", commit="83221655a8237ca80f9673dad06a98d34c43e546", submodules=True
|
||||
)
|
||||
version(
|
||||
"1.0.0", tag="v1.0.0", commit="db5d3131d16f57abd4f13d3f4b885d5f67bf6644", submodules=True
|
||||
)
|
||||
version("main", branch="main")
|
||||
version("master", branch="main", deprecated=True)
|
||||
version("2.1.0", tag="v2.1.0", commit="7bcf7da3a268b435777fe87c7794c382f444e86d")
|
||||
version("2.0.1", tag="v2.0.1", commit="e9ebda29d87ce0916ab08c06ab26fd3766a870e5")
|
||||
version("2.0.0", tag="v2.0.0", commit="c263bd43e8e8502d4726643bc6fd046f0130ac0e")
|
||||
version("1.13.1", tag="v1.13.1", commit="49444c3e546bf240bed24a101e747422d1f8a0ee")
|
||||
version("1.13.0", tag="v1.13.0", commit="7c98e70d44abc7a1aead68b6ea6c8adc8c554db5")
|
||||
version("1.12.1", tag="v1.12.1", commit="664058fa83f1d8eede5d66418abff6e20bd76ca8")
|
||||
version("1.12.0", tag="v1.12.0", commit="67ece03c8cd632cce9523cd96efde6f2d1cc8121")
|
||||
version("1.11.0", tag="v1.11.0", commit="bc2c6edaf163b1a1330e37a6e34caf8c553e4755")
|
||||
version("1.10.2", tag="v1.10.2", commit="71f889c7d265b9636b93ede9d651c0a9c4bee191")
|
||||
version("1.10.1", tag="v1.10.1", commit="302ee7bfb604ebef384602c56e3853efed262030")
|
||||
version("1.10.0", tag="v1.10.0", commit="36449ea93134574c2a22b87baad3de0bf8d64d42")
|
||||
version("1.9.1", tag="v1.9.1", commit="dfbd030854359207cb3040b864614affeace11ce")
|
||||
version("1.9.0", tag="v1.9.0", commit="d69c22dd61a2f006dcfe1e3ea8468a3ecaf931aa")
|
||||
version("1.8.2", tag="v1.8.2", commit="e0495a7aa104471d95dc85a1b8f6473fbcc427a8")
|
||||
version("1.8.1", tag="v1.8.1", commit="56b43f4fec1f76953f15a627694d4bba34588969")
|
||||
version("1.8.0", tag="v1.8.0", commit="37c1f4a7fef115d719104e871d0cf39434aa9d56")
|
||||
version("1.7.1", tag="v1.7.1", commit="57bffc3a8e4fee0cce31e1ff1f662ccf7b16db57")
|
||||
version("1.7.0", tag="v1.7.0", commit="e85d494707b835c12165976b8442af54b9afcb26")
|
||||
version("1.6.0", tag="v1.6.0", commit="b31f58de6fa8bbda5353b3c77d9be4914399724d")
|
||||
version("1.5.1", tag="v1.5.1", commit="3c31d73c875d9a4a6ea8a843b9a0d1b19fbe36f3")
|
||||
version("1.5.0", tag="v1.5.0", commit="4ff3872a2099993bf7e8c588f7182f3df777205b")
|
||||
version("1.4.1", tag="v1.4.1", commit="74044638f755cd8667bedc73da4dbda4aa64c948")
|
||||
version("1.3.1", tag="v1.3.1", commit="ee77ccbb6da4e2efd83673e798acf7081bc03564")
|
||||
version("1.3.0", tag="v1.3.0", commit="de394b672d0346f2f387a8bb1a1280d5d2eaf9cb")
|
||||
version("1.2.0", tag="v1.2.0", commit="8554416a199c4cec01c60c7015d8301d2bb39b64")
|
||||
version("1.1.0", tag="v1.1.0", commit="142c973f4179e768164cd578951489e89021b29c")
|
||||
version("1.0.1", tag="v1.0.1", commit="83221655a8237ca80f9673dad06a98d34c43e546")
|
||||
version("1.0.0", tag="v1.0.0", commit="db5d3131d16f57abd4f13d3f4b885d5f67bf6644")
|
||||
|
||||
is_darwin = sys.platform == "darwin"
|
||||
|
||||
|
@ -191,12 +138,10 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
|
|||
# See python_min_version in setup.py
|
||||
# Upper bounds come from wheel availability on PyPI
|
||||
depends_on("python@3.8:3.11", when="@2:", type=("build", "link", "run"))
|
||||
depends_on("python@3.7:3.10", when="@1.11:1", type=("build", "link", "run"))
|
||||
depends_on("python@3.6.2:3.9", when="@1.7.1:1.10", type=("build", "link", "run"))
|
||||
depends_on("python@3.6.1:3.8", when="@1.6:1.7.0", type=("build", "link", "run"))
|
||||
depends_on("python@3.5:3.8", when="@1.5", type=("build", "link", "run"))
|
||||
depends_on("python@2.7:2,3.5:3.8", when="@1.4", type=("build", "link", "run"))
|
||||
depends_on("python@2.7:2,3.5:3.7", when="@:1.3", type=("build", "link", "run"))
|
||||
depends_on("python@:3.10", when="@1.11:1", type=("build", "link", "run"))
|
||||
depends_on("python@:3.9", when="@1.7.1:1.10", type=("build", "link", "run"))
|
||||
depends_on("python@:3.8", when="@1.4:1.7.0", type=("build", "link", "run"))
|
||||
depends_on("python@:3.7", when="@:1.3", type=("build", "link", "run"))
|
||||
|
||||
# CMakelists.txt
|
||||
depends_on("cmake@3.18:", when="@2:", type="build")
|
||||
|
@ -221,6 +166,7 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
|
|||
depends_on("py-sympy", when="@2:", type=("build", "run"))
|
||||
depends_on("py-networkx", when="@2:", type=("build", "run"))
|
||||
depends_on("py-jinja2", when="@2:", type=("build", "run"))
|
||||
depends_on("py-fsspec", when="@2.1:", type=("build", "run"))
|
||||
|
||||
# Undocumented dependencies
|
||||
depends_on("py-tqdm", type="run")
|
||||
|
@ -228,7 +174,8 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
|
|||
depends_on("lapack")
|
||||
|
||||
# third_party
|
||||
depends_on("py-pybind11@2.10.1", when="@2:", type=("build", "link", "run"))
|
||||
depends_on("py-pybind11@2.11.0", when="@2.1:", type=("build", "link", "run"))
|
||||
depends_on("py-pybind11@2.10.1", when="@2.0", type=("build", "link", "run"))
|
||||
depends_on("py-pybind11@2.10.0", when="@1.13:1", type=("build", "link", "run"))
|
||||
depends_on("py-pybind11@2.6.2", when="@1.8:1.12", type=("build", "link", "run"))
|
||||
depends_on("py-pybind11@2.3.0", when="@1.1:1.7", type=("build", "link", "run"))
|
||||
|
@ -243,7 +190,8 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
|
|||
depends_on("protobuf@:3", type=("build", "run"))
|
||||
depends_on("eigen")
|
||||
# https://github.com/pytorch/pytorch/issues/60329
|
||||
# depends_on("cpuinfo@2022-08-19", when="@1.13:")
|
||||
# depends_on("cpuinfo@2023-01-13", when="@2.1:")
|
||||
# depends_on("cpuinfo@2022-08-19", when="@1.13:2.0")
|
||||
# depends_on("cpuinfo@2020-12-17", when="@1.8:1.12")
|
||||
# depends_on("cpuinfo@2020-06-11", when="@1.6:1.7")
|
||||
# https://github.com/shibatch/sleef/issues/427
|
||||
|
@ -300,14 +248,16 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
|
|||
# depends_on("xnnpack@2020-03-23", when="@1.6:1.7+xnnpack")
|
||||
depends_on("mpi", when="+mpi")
|
||||
# https://github.com/pytorch/pytorch/issues/60270
|
||||
# depends_on("gloo@2023-01-17", when="@2:+gloo")
|
||||
# depends_on("gloo@2023-05-19", when="@2.1:+gloo")
|
||||
# depends_on("gloo@2023-01-17", when="@2.0+gloo")
|
||||
# depends_on("gloo@2022-05-18", when="@1.13:1+gloo")
|
||||
# depends_on("gloo@2021-05-21", when="@1.10:1.12+gloo")
|
||||
# depends_on("gloo@2021-05-04", when="@1.9+gloo")
|
||||
# depends_on("gloo@2020-09-18", when="@1.7:1.8+gloo")
|
||||
# depends_on("gloo@2020-03-17", when="@1.6+gloo")
|
||||
# https://github.com/pytorch/pytorch/issues/60331
|
||||
# depends_on("onnx@1.13.1", when="@2:+onnx_ml")
|
||||
# depends_on("onnx@1.14.1", when="@2.1:+onnx_ml")
|
||||
# depends_on("onnx@1.13.1", when="@2.0+onnx_ml")
|
||||
# depends_on("onnx@1.12.0", when="@1.13:1+onnx_ml")
|
||||
# depends_on("onnx@1.11.0", when="@1.12+onnx_ml")
|
||||
# depends_on("onnx@1.10.1_2021-10-08", when="@1.11+onnx_ml")
|
||||
|
@ -420,7 +370,22 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
|
|||
sha256="a54db63640b90e5833cc1099c0935572f5297d2d8625f62f01ac1fda79ed4569",
|
||||
when="@1.13 arch=ppc64le:",
|
||||
)
|
||||
conflicts("arch=ppc64le:", when="@:1.9,2:")
|
||||
patch(
|
||||
"https://github.com/open-ce/pytorch-feedstock/raw/open-ce-v1.9.0/pytorch-2.0/recipe/0309-fallback-to-cpu_kernel-with-VSX.patch",
|
||||
sha256="27f41c8d6cb61e69e761be62f03dc1ce023cbca34926e3ba559996821a7ce726",
|
||||
when="@2.0 arch=ppc64le:",
|
||||
)
|
||||
patch(
|
||||
"https://github.com/open-ce/pytorch-feedstock/raw/open-ce-v1.9.0/pytorch-2.0/recipe/0310-PR100149.patch",
|
||||
sha256="1adbd38a9cc1611f1caaa325614695f4349d9ffd236332e0d8f0de5a3880f4dd",
|
||||
when="@2.0 arch=ppc64le:",
|
||||
)
|
||||
patch(
|
||||
"https://github.com/open-ce/pytorch-feedstock/raw/open-ce-v1.10.0/pytorch-2.0/recipe/0311-PR104956.patch",
|
||||
sha256="be27c906924a21be198a3ea6c459739a1daa8b8b89045af339dafa4cd6f90d6c",
|
||||
when="@2.0 arch=ppc64le:",
|
||||
)
|
||||
conflicts("arch=ppc64le:", when="@:1.9")
|
||||
|
||||
# Cherry-pick a patch to allow earlier versions of PyTorch to work with CUDA 11.4
|
||||
patch(
|
||||
|
|
|
@ -8,93 +8,41 @@
|
|||
|
||||
|
||||
class PyTorchaudio(PythonPackage):
|
||||
"""The aim of torchaudio is to apply PyTorch to the audio
|
||||
domain. By supporting PyTorch, torchaudio follows the same
|
||||
philosophy of providing strong GPU acceleration, having a focus on
|
||||
trainable features through the autograd system, and having
|
||||
consistent style (tensor names and dimension names). Therefore, it
|
||||
is primarily a machine learning library and not a general signal
|
||||
processing library. The benefits of Pytorch is be seen in
|
||||
torchaudio through having all the computations be through Pytorch
|
||||
operations which makes it easy to use and feel like a natural
|
||||
extension."""
|
||||
"""An audio package for PyTorch."""
|
||||
|
||||
homepage = "https://github.com/pytorch/audio"
|
||||
git = "https://github.com/pytorch/audio.git"
|
||||
submodules = True
|
||||
|
||||
version("main", branch="main", submodules=True)
|
||||
version(
|
||||
"2.0.2", tag="v2.0.2", commit="31de77dad5c89274451b3f5c4bcb630be12787c4", submodules=True
|
||||
)
|
||||
version(
|
||||
"2.0.1", tag="v2.0.1", commit="3b40834aca41957002dfe074175e900cf8906237", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.13.1", tag="v0.13.1", commit="b90d79882c3521fb3882833320b4b85df3b622f4", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.13.0", tag="v0.13.0", commit="bc8640b4722abf6587fb4cc2521da45aeb55a711", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.12.1", tag="v0.12.1", commit="58da31733e08438f9d1816f55f54756e53872a92", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.12.0", tag="v0.12.0", commit="2e1388401c434011e9f044b40bc8374f2ddfc414", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.11.0", tag="v0.11.0", commit="820b383b3b21fc06e91631a5b1e6ea1557836216", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.10.2", tag="v0.10.2", commit="6f539cf3edc4224b51798e962ca28519e5479ffb", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.10.1", tag="v0.10.1", commit="4b64f80bef85bd951ea35048c461c8304e7fc4c4", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.10.0", tag="v0.10.0", commit="d2634d866603c1e2fc8e44cd6e9aea7ddd21fe29", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.9.1", tag="v0.9.1", commit="a85b2398722182dd87e76d9ffcbbbf7e227b83ce", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.9.0", tag="v0.9.0", commit="33b2469744955e2129c6367457dffe9bb4b05dea", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.8.2", tag="v0.8.2", commit="d254d547d183e7203e455de6b99e56d3ffdd4499", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.8.1", tag="v0.8.1", commit="e4e171a51714b2b2bd79e1aea199c3f658eddf9a", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.8.0", tag="v0.8.0", commit="099d7883c6b7af1d1c3b416191e5f3edf492e104", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.7.2", tag="v0.7.2", commit="a853dff25de36cc637b1f02029343790d2dd0199", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.7.0", tag="v0.7.0", commit="ac17b64f4daedd45d0495e2512e22eaa6e5b7eeb", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.6.0", tag="v0.6.0", commit="f17ae39ff9da0df8f795fef2fcc192f298f81268", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.5.1", tag="v0.5.1", commit="71434798460a4ceca9d42004567ef419c62a612e", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.5.0", tag="v0.5.0", commit="09494ea545738538f9db2dceeffe10d421060ee5", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.4.0", tag="v0.4.0", commit="8afed303af3de41f3586007079c0534543c8f663", submodules=True
|
||||
)
|
||||
version("main", branch="main")
|
||||
version("2.1.0", tag="v2.1.0", commit="6ea1133706801ec6e81bb29142da2e21a8583a0a")
|
||||
version("2.0.2", tag="v2.0.2", commit="31de77dad5c89274451b3f5c4bcb630be12787c4")
|
||||
version("2.0.1", tag="v2.0.1", commit="3b40834aca41957002dfe074175e900cf8906237")
|
||||
version("0.13.1", tag="v0.13.1", commit="b90d79882c3521fb3882833320b4b85df3b622f4")
|
||||
version("0.13.0", tag="v0.13.0", commit="bc8640b4722abf6587fb4cc2521da45aeb55a711")
|
||||
version("0.12.1", tag="v0.12.1", commit="58da31733e08438f9d1816f55f54756e53872a92")
|
||||
version("0.12.0", tag="v0.12.0", commit="2e1388401c434011e9f044b40bc8374f2ddfc414")
|
||||
version("0.11.0", tag="v0.11.0", commit="820b383b3b21fc06e91631a5b1e6ea1557836216")
|
||||
version("0.10.2", tag="v0.10.2", commit="6f539cf3edc4224b51798e962ca28519e5479ffb")
|
||||
version("0.10.1", tag="v0.10.1", commit="4b64f80bef85bd951ea35048c461c8304e7fc4c4")
|
||||
version("0.10.0", tag="v0.10.0", commit="d2634d866603c1e2fc8e44cd6e9aea7ddd21fe29")
|
||||
version("0.9.1", tag="v0.9.1", commit="a85b2398722182dd87e76d9ffcbbbf7e227b83ce")
|
||||
version("0.9.0", tag="v0.9.0", commit="33b2469744955e2129c6367457dffe9bb4b05dea")
|
||||
version("0.8.2", tag="v0.8.2", commit="d254d547d183e7203e455de6b99e56d3ffdd4499")
|
||||
version("0.8.1", tag="v0.8.1", commit="e4e171a51714b2b2bd79e1aea199c3f658eddf9a")
|
||||
version("0.8.0", tag="v0.8.0", commit="099d7883c6b7af1d1c3b416191e5f3edf492e104")
|
||||
version("0.7.2", tag="v0.7.2", commit="a853dff25de36cc637b1f02029343790d2dd0199")
|
||||
version("0.7.0", tag="v0.7.0", commit="ac17b64f4daedd45d0495e2512e22eaa6e5b7eeb")
|
||||
version("0.6.0", tag="v0.6.0", commit="f17ae39ff9da0df8f795fef2fcc192f298f81268")
|
||||
version("0.5.1", tag="v0.5.1", commit="71434798460a4ceca9d42004567ef419c62a612e")
|
||||
version("0.5.0", tag="v0.5.0", commit="09494ea545738538f9db2dceeffe10d421060ee5")
|
||||
version("0.4.0", tag="v0.4.0", commit="8afed303af3de41f3586007079c0534543c8f663")
|
||||
|
||||
# https://github.com/pytorch/audio#dependencies
|
||||
# https://pytorch.org/audio/main/installation.html#dependencies
|
||||
depends_on("python@3.8:3.11", when="@2:", type=("build", "link", "run"))
|
||||
depends_on("python@3.7:3.10", when="@0.12:0", type=("build", "link", "run"))
|
||||
depends_on("python@3.7:3.9", when="@0.11", type=("build", "link", "run"))
|
||||
depends_on("python@3.6:3.9", when="@0.7.2:0.10", type=("build", "link", "run"))
|
||||
depends_on("python@3.6:3.8", when="@0.6:0.7.0", type=("build", "link", "run"))
|
||||
depends_on("python@3.5:3.8", when="@0.5", type=("build", "link", "run"))
|
||||
depends_on("python@2.7,3.5:3.8", when="@0.4", type=("build", "link", "run"))
|
||||
depends_on("python@:3.10", when="@0.12:0", type=("build", "link", "run"))
|
||||
depends_on("python@:3.9", when="@0.7.2:0.11", type=("build", "link", "run"))
|
||||
depends_on("python@:3.8", when="@:0.7.0", type=("build", "link", "run"))
|
||||
|
||||
# CMakelists.txt
|
||||
depends_on("cmake@3.18:", when="@0.10:", type="build")
|
||||
|
@ -107,8 +55,8 @@ class PyTorchaudio(PythonPackage):
|
|||
depends_on("pkgconfig", type="build")
|
||||
depends_on("sox")
|
||||
|
||||
# https://github.com/pytorch/audio#dependencies
|
||||
depends_on("py-torch@master", when="@main", type=("build", "link", "run"))
|
||||
depends_on("py-torch@main", when="@main", type=("build", "link", "run"))
|
||||
depends_on("py-torch@2.1.0", when="@2.1.0", type=("build", "link", "run"))
|
||||
depends_on("py-torch@2.0.1", when="@2.0.2", type=("build", "link", "run"))
|
||||
depends_on("py-torch@2.0.0", when="@2.0.1", type=("build", "link", "run"))
|
||||
depends_on("py-torch@1.13.1", when="@0.13.1", type=("build", "link", "run"))
|
||||
|
|
|
@ -16,6 +16,7 @@ class PyTorchdata(PythonPackage):
|
|||
maintainers("adamjstewart")
|
||||
|
||||
version("main", branch="main")
|
||||
version("0.7.0-rc1", sha256="9d48e1a5bc0fa4e50976b89aea38d028dcb7e580dba594755d266e19c369b747")
|
||||
version("0.6.1", sha256="c596db251c5e6550db3f00e4308ee7112585cca4d6a1c82a433478fd86693257")
|
||||
version("0.6.0", sha256="048dea12ee96c0ea1525097959fee811d7b38c2ed05f44a90f35f8961895fb5b")
|
||||
version("0.5.1", sha256="69d80bd33ce8f08e7cfeeb71cefddfc29cede25a85881e33dbae47576b96ed29")
|
||||
|
@ -36,7 +37,8 @@ class PyTorchdata(PythonPackage):
|
|||
depends_on("ninja", when="@0.4:", type="build")
|
||||
|
||||
# https://github.com/pytorch/data#version-compatibility
|
||||
depends_on("py-torch@master", when="@main", type=("build", "run"))
|
||||
depends_on("py-torch@main", when="@main", type=("build", "run"))
|
||||
depends_on("py-torch@2.1.0", when="@0.7.0", type=("build", "run"))
|
||||
depends_on("py-torch@2.0.1", when="@0.6.1", type=("build", "run"))
|
||||
depends_on("py-torch@2.0.0", when="@0.6.0", type=("build", "run"))
|
||||
depends_on("py-torch@1.13.1", when="@0.5.1", type=("build", "run"))
|
||||
|
|
|
@ -8,67 +8,37 @@
|
|||
|
||||
|
||||
class PyTorchtext(PythonPackage):
|
||||
"""Text utilities and datasets for PyTorch."""
|
||||
"""Text utilities, models, transforms, and datasets for PyTorch."""
|
||||
|
||||
homepage = "https://github.com/pytorch/text"
|
||||
git = "https://github.com/pytorch/text.git"
|
||||
submodules = True
|
||||
|
||||
maintainers("adamjstewart")
|
||||
|
||||
version("main", branch="main", submodules=True)
|
||||
version(
|
||||
"0.15.2", tag="v0.15.2", commit="4571036cf66c539e50625218aeb99a288d79f3e1", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.15.1", tag="v0.15.1", commit="c696895e524c61fd2b8b26916dd006411c5f3ba5", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.14.1", tag="v0.14.1", commit="e1e969d4947bb3dd01ea927af2f8ac9a2d778c39", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.14.0", tag="v0.14.0", commit="e2b27f9b06ca71d55c2fcf6d47c60866ee936f40", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.13.1", tag="v0.13.1", commit="330201f1132dcd0981180c19bc6843a19d310ff0", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.13.0", tag="v0.13.0", commit="35298c43f3ce908fe06c177ecbd8ef1503a1292b", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.12.0", tag="v0.12.0", commit="d7a34d6ae0f4e36a52777854d0163b9e85f1576b", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.11.2", tag="v0.11.2", commit="92f4d158d8cbe9136896befa2d4234ea8b8e2795", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.11.1", tag="v0.11.1", commit="5c65ec05d7c1eba5b0ea2d7ee170ccf977d9674f", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.10.1", tag="v0.10.1", commit="0d670e03c1eee7e30e032bb96df4c12b785a15ff", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.10.0", tag="v0.10.0", commit="4da1de36247aa06622088e78508e0e38a4392e38", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.9.2", tag="v0.9.2", commit="22e5ee7548a85190eee78e8ed6c8911ec2c53035", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.8.1", tag="v0.8.1", commit="0f911ec35ab020983efbf36b8c14415651e98618", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.6.0", tag="0.6.0", commit="3a54c7f52584f201c17ca7489b52b812152612dc", submodules=True
|
||||
)
|
||||
version(
|
||||
"0.5.0", tag="0.5.0", commit="0169cde2f1d446ae886ef0be07e9a673585ed256", submodules=True
|
||||
)
|
||||
version("main", branch="main")
|
||||
version("0.16.0", tag="v0.16.0", commit="4e255c95c76b1ccde4f6650391c0bc30650d6dbe")
|
||||
version("0.15.2", tag="v0.15.2", commit="4571036cf66c539e50625218aeb99a288d79f3e1")
|
||||
version("0.15.1", tag="v0.15.1", commit="c696895e524c61fd2b8b26916dd006411c5f3ba5")
|
||||
version("0.14.1", tag="v0.14.1", commit="e1e969d4947bb3dd01ea927af2f8ac9a2d778c39")
|
||||
version("0.14.0", tag="v0.14.0", commit="e2b27f9b06ca71d55c2fcf6d47c60866ee936f40")
|
||||
version("0.13.1", tag="v0.13.1", commit="330201f1132dcd0981180c19bc6843a19d310ff0")
|
||||
version("0.13.0", tag="v0.13.0", commit="35298c43f3ce908fe06c177ecbd8ef1503a1292b")
|
||||
version("0.12.0", tag="v0.12.0", commit="d7a34d6ae0f4e36a52777854d0163b9e85f1576b")
|
||||
version("0.11.2", tag="v0.11.2", commit="92f4d158d8cbe9136896befa2d4234ea8b8e2795")
|
||||
version("0.11.1", tag="v0.11.1", commit="5c65ec05d7c1eba5b0ea2d7ee170ccf977d9674f")
|
||||
version("0.10.1", tag="v0.10.1", commit="0d670e03c1eee7e30e032bb96df4c12b785a15ff")
|
||||
version("0.10.0", tag="v0.10.0", commit="4da1de36247aa06622088e78508e0e38a4392e38")
|
||||
version("0.9.2", tag="v0.9.2", commit="22e5ee7548a85190eee78e8ed6c8911ec2c53035")
|
||||
version("0.8.1", tag="v0.8.1", commit="0f911ec35ab020983efbf36b8c14415651e98618")
|
||||
version("0.6.0", tag="0.6.0", commit="3a54c7f52584f201c17ca7489b52b812152612dc")
|
||||
version("0.5.0", tag="0.5.0", commit="0169cde2f1d446ae886ef0be07e9a673585ed256")
|
||||
|
||||
# https://github.com/pytorch/text#installation
|
||||
depends_on("python@3.8:3.11", when="@2:", type=("build", "link", "run"))
|
||||
depends_on("python@3.7:3.10", when="@0.13:1", type=("build", "link", "run"))
|
||||
depends_on("python@3.6:3.9", when="@0.8.1:0.12", type=("build", "link", "run"))
|
||||
depends_on("python@3.6:3.8", when="@0.7:0.8.0", type=("build", "link", "run"))
|
||||
depends_on("python@3.5:3.8", when="@0.6", type=("build", "link", "run"))
|
||||
depends_on("python@2.7,3.5:3.8", when="@:0.5", type=("build", "link", "run"))
|
||||
depends_on("python@3.8:3.11", when="@0.15:", type=("build", "link", "run"))
|
||||
depends_on("python@:3.10", when="@0.13:0.14", type=("build", "link", "run"))
|
||||
depends_on("python@:3.9", when="@0.8.1:0.12", type=("build", "link", "run"))
|
||||
depends_on("python@:3.8", when="@:0.8.0", type=("build", "link", "run"))
|
||||
|
||||
# CMakelists.txt
|
||||
depends_on("cmake@3.18:", when="@0.13:", type="build")
|
||||
|
@ -79,13 +49,16 @@ class PyTorchtext(PythonPackage):
|
|||
depends_on("py-tqdm", type=("build", "run"))
|
||||
depends_on("py-requests", type=("build", "run"))
|
||||
depends_on("py-numpy", type=("build", "run"))
|
||||
depends_on("py-torchdata@0.6:", when="@0.15:", type=("build", "run"))
|
||||
depends_on("py-torchdata@0.7.0", when="@0.16.0", type=("build", "run"))
|
||||
depends_on("py-torchdata@0.6.1", when="@0.15.2", type=("build", "run"))
|
||||
depends_on("py-torchdata@0.6.0", when="@0.15.1", type=("build", "run"))
|
||||
depends_on("py-pybind11", when="@0.8:", type=("build", "link"))
|
||||
depends_on("py-six", when="@:0.6", type=("build", "run"))
|
||||
depends_on("py-sentencepiece", when="@:0.7", type=("build", "run"))
|
||||
|
||||
# https://github.com/pytorch/text#installation
|
||||
depends_on("py-torch@master", when="@main", type=("build", "link", "run"))
|
||||
depends_on("py-torch@main", when="@main", type=("build", "link", "run"))
|
||||
depends_on("py-torch@2.1.0", when="@0.16.0", type=("build", "link", "run"))
|
||||
depends_on("py-torch@2.0.1", when="@0.15.2", type=("build", "link", "run"))
|
||||
depends_on("py-torch@2.0.0", when="@0.15.1", type=("build", "link", "run"))
|
||||
depends_on("py-torch@1.13.1", when="@0.14.1", type=("build", "link", "run"))
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
|
||||
|
||||
class PyTorchvision(PythonPackage):
|
||||
"""The torchvision package consists of popular datasets, model
|
||||
architectures, and common image transformations for computer vision."""
|
||||
"""Image and video datasets and models for torch deep learning."""
|
||||
|
||||
homepage = "https://github.com/pytorch/vision"
|
||||
url = "https://github.com/pytorch/vision/archive/v0.8.2.tar.gz"
|
||||
|
@ -18,6 +17,7 @@ class PyTorchvision(PythonPackage):
|
|||
maintainers("adamjstewart")
|
||||
|
||||
version("main", branch="main")
|
||||
version("0.16.0", sha256="79b30b082237e3ead21e74587cedf4a4d832f977cf7dfeccfb65f67988b12ceb")
|
||||
version("0.15.2", sha256="1efcb80e0a6e42c54f07ee16167839b4d302aeeecc12839cc47c74b06a2c20d4")
|
||||
version("0.15.1", sha256="689d23d4ebb0c7e54e8651c89b17155b64341c14ae4444a04ca7dc6f2b6a0a43")
|
||||
version("0.14.1", sha256="ced67e1cf1f97e168cdf271851a4d0b6d382ab7936e7bcbb39aaa87239c324b6")
|
||||
|
@ -55,15 +55,14 @@ class PyTorchvision(PythonPackage):
|
|||
|
||||
# https://github.com/pytorch/vision#installation
|
||||
depends_on("python@3.8:3.11", when="@0.15:", type=("build", "link", "run"))
|
||||
depends_on("python@3.7:3.10", when="@0.12:0.14", type=("build", "link", "run"))
|
||||
depends_on("python@3.6:3.9", when="@0.8.2:0.11", type=("build", "link", "run"))
|
||||
depends_on("python@3.6:3.8", when="@0.7:0.8.1", type=("build", "link", "run"))
|
||||
depends_on("python@3.5:3.8", when="@0.6", type=("build", "link", "run"))
|
||||
depends_on("python@2.7,3.5:3.8", when="@0.5", type=("build", "link", "run"))
|
||||
depends_on("python@2.7,3.5:3.7", when="@:0.4", type=("build", "link", "run"))
|
||||
depends_on("python@:3.10", when="@0.12:0.14", type=("build", "link", "run"))
|
||||
depends_on("python@:3.9", when="@0.8.2:0.11", type=("build", "link", "run"))
|
||||
depends_on("python@:3.8", when="@0.5:0.8.1", type=("build", "link", "run"))
|
||||
depends_on("python@:3.7", when="@:0.4", type=("build", "link", "run"))
|
||||
|
||||
# https://github.com/pytorch/vision#installation
|
||||
depends_on("py-torch@main", when="@main", type=("build", "link", "run"))
|
||||
depends_on("py-torch@2.1.0", when="@0.16.0", type=("build", "link", "run"))
|
||||
depends_on("py-torch@2.0.1", when="@0.15.2", type=("build", "link", "run"))
|
||||
depends_on("py-torch@2.0.0", when="@0.15.1", type=("build", "link", "run"))
|
||||
depends_on("py-torch@1.13.1", when="@0.14.1", type=("build", "link", "run"))
|
||||
|
|
Loading…
Reference in a new issue