# Bazel extensions for pybind11 module( name = "pybind11_bazel", version = "3.0.1", ) bazel_dep(name = "bazel_features", version = "1.43.0") bazel_dep(name = "bazel_skylib", version = "1.9.0") bazel_dep(name = "platforms", version = "1.0.0") bazel_dep(name = "rules_cc", version = "0.2.17") bazel_dep(name = "rules_python", version = "1.9.0") python = use_extension("@rules_python//python/extensions:python.bzl", "python") python.defaults( # The environment variable takes precedence if set. python_version = "3.12", python_version_env = "BAZEL_PYTHON_VERSION", ) python.toolchain(python_version = "3.10") python.toolchain(python_version = "3.11") python.toolchain(python_version = "3.12") python.toolchain(python_version = "3.13") python.toolchain(python_version = "3.14") internal_configure = use_extension("//:internal_configure.bzl", "internal_configure_extension") use_repo(internal_configure, "pybind11")