[llvm] [bazel] Add support for pybind (PR #98398)
Jordan Rupprecht via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 17 20:01:27 PDT 2024
================
@@ -129,3 +137,21 @@ maybe(
"https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz",
],
)
+
+maybe(
+ http_archive,
+ name = "pybind11",
+ build_file = "@llvm-raw//utils/bazel/third_party_build:pybind.BUILD",
+ sha256 = "201966a61dc826f1b1879a24a3317a1ec9214a918c8eb035be2f30c3e9cfbdcb",
+ strip_prefix = "pybind11-2.10.3",
+ url = "https://github.com/pybind/pybind11/archive/v2.10.3.zip",
+)
+
+load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
+
+py_repositories()
+
+python_register_toolchains(
+ name = "python_3_10",
+ python_version = "3.10",
----------------
rupprecht wrote:
The current stable Python version is 3.12 -- does that version work instead? 3.10 is still supported into 2026, so this is fine if not.
https://devguide.python.org/versions/
https://github.com/llvm/llvm-project/pull/98398
More information about the llvm-commits
mailing list