module( name = "cython", version = "3.2.4", bazel_compatibility = [">=7.2.1"], ) bazel_dep(name = "rules_python", version = "1.7.0") bazel_dep(name = "rules_cc", version = "0.2.16") PYTHON_VERSIONS = [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", ] python = use_extension("@rules_python//python/extensions:python.bzl", "python") [ python.toolchain( is_default = python_version == PYTHON_VERSIONS[-1], python_version = python_version, ) for python_version in PYTHON_VERSIONS ]