Skip to content

Commit

Permalink
py-nanobind: add v2.1.0 and v2.2.0 (spack#46884)
Browse files Browse the repository at this point in the history
* Update nanobind versions

* Small fix

* More small fixes

* Formatting update
  • Loading branch information
garth-wells authored Oct 11, 2024
1 parent 3a38122 commit 08b07b9
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions var/spack/repos/builtin/packages/py-nanobind/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ class PyNanobind(PythonPackage):
license("BSD-3-Clause")

version("master", branch="master", submodules=True)
version(
"2.2.0", tag="v2.2.0", commit="784efa2a0358a4dc5432c74f5685ee026e20f2b6", submodules=True
)
version(
"2.1.0", tag="v2.1.0", commit="9641bb7151f04120013b812789b3ebdfa7e7324f", submodules=True
)
version(
"2.0.0", tag="v2.0.0", commit="8d7f1ee0621c17fa370b704b2100ffa0243d5bfb", submodules=True
)
Expand Down Expand Up @@ -57,12 +63,15 @@ class PyNanobind(PythonPackage):
depends_on("cxx", type="build") # generated

depends_on("[email protected]:", type=("build", "run"))
depends_on("py-setuptools@42:", type="build")
depends_on("py-scikit-build", type="build")
depends_on("py-typing-extensions", when="@2:", type="build")

depends_on("[email protected]:", type="build")
depends_on("ninja", type="build")
depends_on("py-setuptools@42:", when="@:2.0", type="build")
depends_on("py-scikit-build", when="@:2.0", type="build")
depends_on("py-typing-extensions", when="@2.0", type="build")
depends_on("ninja", when="@2.0", type="build")
depends_on("[email protected]:", when="@:2.0", type="build")

depends_on("[email protected]:", when="@2.1", type="build")
depends_on("[email protected]:", when="@2.2:", type="build")

@property
def cmake_prefix_paths(self):
Expand Down

0 comments on commit 08b07b9

Please sign in to comment.