Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Pass use_default_shell_env=True to ctx.action. - #76

Merged
duggelz merged 2 commits into
google:masterfrom
ebardsley:master
Apr 10, 2018
Merged

Pass use_default_shell_env=True to ctx.action.#76
duggelz merged 2 commits into
google:masterfrom
ebardsley:master

Conversation

@ebardsley

Copy link
Copy Markdown
Contributor

This is necessary under --python_path=python3 and other relative paths,
which is in turn necessary to support builds across multiple environments
with python3 installed in different locations.

This fixes an error like:

Traceback (most recent call last):
File "bazel-out/host/bin/external/subpar/compiler/compiler", line 172, in
Main()
File "bazel-out/host/bin/external/subpar/compiler/compiler", line 145, in Main
raise AssertionError('Could not find python binary: ' + PYTHON_BINARY)
AssertionError: Could not find python binary: python3

When running the compiler as a dependency of a par_* rule.

ebardsley and others added 2 commits March 27, 2018 11:39
This is necessary under --python_path=python3 and other relative paths,
which is in turn necessary to support builds across multiple environments
with python3 installed in different locations.
@duggelz
duggelz merged commit 6c7e64a into google:master Apr 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants