30 lines
1.3 KiB
Python
30 lines
1.3 KiB
Python
|
|
"""Provides the repo macro to import pybind11_abseil.
|
||
|
|
|
||
|
|
pybind11_abseil requires pybind11 (which is loaded in another rule) and pybind11_bazel.
|
||
|
|
See https://github.com/pybind/pybind11_abseil#installation.
|
||
|
|
"""
|
||
|
|
|
||
|
|
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
|
||
|
|
|
||
|
|
def repo():
|
||
|
|
"""Imports pybind11_abseil."""
|
||
|
|
PA_COMMIT = "d9614e4ea46b411d02674305245cba75cd91c1c6"
|
||
|
|
PA_SHA256 = "a2b5509dc1c344954fc2f1ba1d277afae84167691c0daad59b6da71886d1f276"
|
||
|
|
tf_http_archive(
|
||
|
|
name = "pybind11_abseil",
|
||
|
|
sha256 = PA_SHA256,
|
||
|
|
strip_prefix = "pybind11_abseil-{commit}".format(commit = PA_COMMIT),
|
||
|
|
urls = tf_mirror_urls("https://github.com/pybind/pybind11_abseil/archive/{commit}.tar.gz".format(commit = PA_COMMIT)),
|
||
|
|
build_file = "//third_party/pybind11_abseil:BUILD",
|
||
|
|
)
|
||
|
|
|
||
|
|
# pybind11_bazel is a dependency of pybind11_abseil.
|
||
|
|
PB_COMMIT = "72cbbf1fbc830e487e3012862b7b720001b70672"
|
||
|
|
PB_SHA256 = "516c1b3a10d87740d2b7de6f121f8e19dde2c372ecbfe59aef44cd1872c10395"
|
||
|
|
tf_http_archive(
|
||
|
|
name = "pybind11_bazel",
|
||
|
|
strip_prefix = "pybind11_bazel-{commit}".format(commit = PB_COMMIT),
|
||
|
|
sha256 = PB_SHA256,
|
||
|
|
urls = tf_mirror_urls("https://github.com/pybind/pybind11_bazel/archive/72cbbf1fbc830e487e3012862b7b720001b70672.tar.gz"),
|
||
|
|
)
|