From 03d9373e5c5f4a8982a0aa40983254de9114d3db Mon Sep 17 00:00:00 2001 From: Laurent Chardon <35169165+LaurentChardon@users.noreply.github.com> Date: Wed, 15 Jan 2025 20:33:14 -0500 Subject: [PATCH] py-pycuda: add version 2024.1.2 (#48547) * py-pycuda: add version 2024.1.2 * py-pycuda: add version 2024.1.2 * py-pycuda: Improve dependencies versions --- .../builtin/packages/py-pycuda/package.py | 40 +++++++++++-------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/var/spack/repos/builtin/packages/py-pycuda/package.py b/var/spack/repos/builtin/packages/py-pycuda/package.py index de68453815a..29244e0231e 100644 --- a/var/spack/repos/builtin/packages/py-pycuda/package.py +++ b/var/spack/repos/builtin/packages/py-pycuda/package.py @@ -16,6 +16,7 @@ class PyPycuda(PythonPackage): license("MIT") + version("2024.1.2", sha256="d110b727cbea859da4b63e91b6fa1e9fc32c5bade02d89ff449975996e9ccfab") version("2021.1", sha256="ab87312d0fc349d9c17294a087bb9615cffcf966ad7b115f5b051008a48dd6ed") version("2020.1", sha256="effa3b99b55af67f3afba9b0d1b64b4a0add4dd6a33bdd6786df1aa4cc8761a5") version("2019.1.2", sha256="ada56ce98a41f9f95fe18809f38afbae473a5c62d346cfa126a2d5477f24cc8a") @@ -23,6 +24,28 @@ class PyPycuda(PythonPackage): depends_on("cxx", type="build") # generated + # TODO: replace this with an explicit list of components of Boost, + # for instance depends_on('boost +filesystem') + # See https://github.com/spack/spack/pull/22303 for reference + depends_on(Boost.with_default_variants) + # TODO: for versions before 2024.1.2, find out the exact requirements with version constraints + # and enter them below. See https://github.com/spack/spack/pull/48547 + depends_on("python@3.6:3", type=("build", "run"), when="@2020.1:") + depends_on("python@3.8:3", type=("build", "run"), when="@2024.1.2:") + depends_on("boost+python") + depends_on("cuda", type=("build", "run")) + depends_on("cuda@:8.0.61", when="@2016.1.2") + depends_on("py-appdirs@1.4.0:", type=("build", "run"), when="@:2021.1") + depends_on("py-decorator@3.2.0:", type=("build", "run"), when="@:2020.1") + depends_on("py-mako", type=("build", "run")) + depends_on("py-numpy@1.6:", type=("build", "run"), when="@:2021.1") + depends_on("py-numpy@1.24:", type=("build", "run"), when="@2024.1.2:") + depends_on("py-platformdirs@2.2:", type=("build", "run"), when="@2024.1.2:") + depends_on("py-pytools@2011.2:", type=("build", "run")) + depends_on("py-setuptools", type="build") + depends_on("py-six", type="run", when="@:2020.1") + depends_on("py-pytools@2011.2:", type=("build", "run"), when="@2024.1.2:") + @run_before("install") def configure(self): pyver = self.spec["python"].version.up_to(2).joined @@ -34,20 +57,3 @@ def configure(self): "--boost-python-libname={0}".format(boostlib), ] python("configure.py", *configure_args) - - depends_on("py-setuptools", type="build") - depends_on("cuda") - depends_on("boost+python") - # TODO: replace this with an explicit list of components of Boost, - # for instance depends_on('boost +filesystem') - # See https://github.com/spack/spack/pull/22303 for reference - depends_on(Boost.with_default_variants) - depends_on("python@3.6:3", type=("build", "run"), when="@2020.1:") - depends_on("py-numpy@1.6:", type=("build", "run")) - depends_on("py-pytools@2011.2:", type=("build", "run")) - depends_on("py-six", type="run", when="@:2020.1") - depends_on("py-decorator@3.2.0:", type=("build", "run"), when="@:2020.1") - depends_on("py-appdirs@1.4.0:", type=("build", "run")) - depends_on("py-mako", type=("build", "run")) - - depends_on("cuda@:8.0.61", when="@2016.1.2")