Skip to content

Commit

Permalink
Remove local flag. (#63)
Browse files Browse the repository at this point in the history
* Local always results in true.
* Unclear why the flag is useful in this case.
* Currently impedes builds using bazel RBEs.
  • Loading branch information
8W9aG authored Nov 29, 2023
1 parent c65db0a commit 23926b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions python_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,15 @@ def _read_dir(repository_ctx, src_dir):
result = find_result.stdout
return result

def _genrule(src_dir, genrule_name, command, outs, local):
def _genrule(src_dir, genrule_name, command, outs):
"""Returns a string with a genrule.
Genrule executes the given command and produces the given outputs.
"""
return (
"genrule(\n" +
' name = "' +
genrule_name + '",\n' + (
" local = 1,\n" if local else "") +
genrule_name + '",\n' +
" outs = [\n" +
outs +
"\n ],\n" +
Expand Down Expand Up @@ -152,7 +151,6 @@ def _symlink_genrule_for_dir(
genrule_name,
" && ".join(command),
"\n".join(outs),
local = True,
)
return genrule

Expand Down

0 comments on commit 23926b0

Please sign in to comment.