diff --git a/var/spack/repos/builtin/packages/py-onnxruntime/package.py b/var/spack/repos/builtin/packages/py-onnxruntime/package.py index a5f9ed8a21b..12b64fd3e3c 100644 --- a/var/spack/repos/builtin/packages/py-onnxruntime/package.py +++ b/var/spack/repos/builtin/packages/py-onnxruntime/package.py @@ -22,6 +22,8 @@ class PyOnnxruntime(CMakePackage, PythonExtension, ROCmPackage): license("MIT") + version("1.19.2", tag="v1.19.2", commit="ffceed9d44f2f3efb9dd69fa75fea51163c91d91") + version("1.19.0", tag="v1.19.0", commit="26250ae74d2c9a3c6860625ba4a147ddfb936907") version("1.18.2", tag="v1.18.2", commit="9691af1a2a17b12af04652f4d8d2a18ce9507025") version("1.18.1", tag="v1.18.1", commit="387127404e6c1d84b3468c387d864877ed1c67fe") version("1.18.0", tag="v1.18.0", commit="45737400a2f3015c11f005ed7603611eaed306a6") @@ -52,6 +54,8 @@ class PyOnnxruntime(CMakePackage, PythonExtension, ROCmPackage): # requirements.txt depends_on("py-coloredlogs", when="@1.17:", type=("build", "run")) depends_on("py-flatbuffers", type=("build", "run")) + depends_on("py-numpy@1.21.6:", when="@1.19:", type=("build", "run")) + depends_on("py-numpy@1.21.6:1", when="@1.18.1:1.18.2", type=("build", "run")) depends_on("py-numpy@1.16.6:", type=("build", "run")) depends_on("py-numpy@1.21.6:", when="@1.18:", type=("build", "run")) depends_on("py-numpy@:1", when="@:1.18", type=("build", "run")) @@ -64,6 +68,7 @@ class PyOnnxruntime(CMakePackage, PythonExtension, ROCmPackage): depends_on("protobuf@:3.19", when="@:1.11") depends_on("py-cerberus", type=("build", "run")) depends_on("py-onnx", type=("build", "run")) + depends_on("py-onnx@:1.16", type=("build", "run"), when="@:1.18") depends_on("py-onnx@:1.15.0", type=("build", "run"), when="@:1.17") depends_on("py-onnx@:1.16", type=("build", "run"), when="@:1.18") depends_on("zlib-api")