load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def _tpu_impl(mctx): # https://storage.googleapis.com/jax-releases/libtpu_releases.html http_archive( name = "libpjrt_tpu", url = "https://storage.googleapis.com/libtpu-nightly-releases/wheels/libtpu-nightly/libtpu_nightly-0.1.dev20240915+nightly-py3-none-any.whl", type = "zip", sha256 = "4eee6c7dc92e7e60334c5b0261308a0a07c2f5b6235c7c60f465263576c602bf", build_file = "libpjrt_tpu.BUILD.bazel", ) return mctx.extension_metadata( reproducible = True, root_module_direct_deps = ["libpjrt_tpu"], root_module_direct_dev_deps = [], ) tpu_packages = module_extension( implementation = _tpu_impl, )