Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1172,17 +1172,6 @@ def _handleCustomCommandForBazelGen(
logging.info(f"{arg} not found in the output hope it's ok")
alteredArgs.append(arg)

regex = r"^.*/bin/python3(?:\.\d+)?$"
if re.match(regex, command):
command = "python3"

script = []

if command.endswith(".py"):
# Replace command by python3 and pass the script as first argument
script.append(f"$(location {command})")
command = "python3"

# In theory it would be a good idea to not have to genbuild the script that will be used
# by the sh_binary
# toolBuildTarget is a genrule() rule for building the wrapper around the command that
Expand Down
Loading