Skip to content

Commit 5f4d268

Browse files
committed
Make sure wheelmaker uses the default shell env
Clean macOS installs place `python` in `/usr/local/bin`, which is not searched by default when calling `actions.run()`. This caused builds to fail when they were executing python tools on an unmodified macOS host.
1 parent b5ed3e4 commit 5f4d268

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/private/py_wheel.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ def _py_wheel_impl(ctx):
514514
outputs = [outfile, name_file],
515515
arguments = [args],
516516
executable = ctx.executable._wheelmaker,
517+
use_default_shell_env = True,
517518
progress_message = "Building wheel {}".format(ctx.label),
518519
)
519520
return [

0 commit comments

Comments
 (0)