-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathBUILD
38 lines (32 loc) · 1023 Bytes
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
load("@python//:defs.bzl", "compile_pip_requirements")
load("@python_deps//:requirements.bzl", "requirement")
load("@repository_configuration//:repository_config.bzl", "PROFILER_REQUIREMENTS_FILE")
# Description
# Xprof, ML Performance Toolbox (for TPU, GPU, CPU).
licenses(["notice"])
exports_files(["LICENSE"]) # Needed for internal repo.
exports_files([
"tsconfig.json",
"rollup.config.js",
])
py_library(
name = "expect_tensorflow_installed",
# This is a dummy rule used as a tensorflow dependency in open-source.
# We expect tensorflow to already be installed on the system, e.g. via
# `pip install tensorflow`
visibility = ["//visibility:public"],
deps = [
requirement("tensorflow"),
],
)
compile_pip_requirements(
name = "requirements",
extra_args = [
"--allow-unsafe",
"--build-isolation",
"--rebuild",
],
generate_hashes = True,
requirements_in = "requirements.in",
requirements_txt = PROFILER_REQUIREMENTS_FILE,
)