lammps: fix self-referential dependencies (#42521)

This commit is contained in:
Massimiliano Culpo 2024-02-07 08:22:11 +01:00 committed by GitHub
parent ea53008604
commit 5c86a3cca2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -632,9 +632,10 @@ def url_for_version(self, version):
depends_on("py-numpy", when="+python", type=("build", "run"))
depends_on("py-mpi4py", when="+python+mpi", type=("build", "run"))
depends_on("py-setuptools@42:", when="@20220217:+python", type=("build", "run"))
depends_on("n2p2@2.1.4:", when="+user-hdnnp")
depends_on("n2p2@2.1.4:", when="+ml-hdnnp")
depends_on("n2p2+shared", when="+lib ^n2p2")
for _n2p2_cond in ("+user-hdnnp", "+ml-hdnnp"):
with when(_n2p2_cond):
depends_on("n2p2@2.1.4:")
depends_on("n2p2+shared", when="+lib")
depends_on("vtk", when="+user-vtk")
depends_on("vtk", when="+vtk")
depends_on("hipcub", when="~kokkos +rocm")