mirror of
https://github.com/google/benchmark.git
synced 2024-11-29 00:34:42 +00:00
aacf2b1af9
* Migrate to bzlmod * Update Python version to PY3, as indicated by the actual source file. * Migrate more libraries & first draft of direct pywheel rule usage in Bazel * Integrate with nanobind and libpfm * Make Python toolchain a dev dependency * Undo py_wheel usage until later * Added support for bzlmod for C++ parts of google_benchmark. * Make //tools:all buildable with --enable_bzlmod --------- Co-authored-by: Andy Christiansen <achristiansen@google.com>
20 lines
334 B
Python
20 lines
334 B
Python
load("@tools_pip_deps//:requirements.bzl", "requirement")
|
|
|
|
py_library(
|
|
name = "gbench",
|
|
srcs = glob(["gbench/*.py"]),
|
|
deps = [
|
|
requirement("numpy"),
|
|
requirement("scipy"),
|
|
],
|
|
)
|
|
|
|
py_binary(
|
|
name = "compare",
|
|
srcs = ["compare.py"],
|
|
python_version = "PY3",
|
|
deps = [
|
|
":gbench",
|
|
],
|
|
)
|