OSX enviroment PATH gets truncated #1571
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Rules-Python
Native rules for Python
type: bug
Milestone
Hi,
I have py_binary rule with PY3 set as default_python_version. When the build runs, it fails to locate python3:
Traceback (most recent call last):
File "bazel-out/local-py3-fastbuild/bin/testws/test-builder", line 122, in
Main()
File "bazel-out/local-py3-fastbuild/bin/testws/test-builder", line 107, in Main
raise AssertionError('Could not find python binary: ' + PYTHON_BINARY)
AssertionError: Could not find python binary: python3
I have modified standard template for the script to print every path it checks. Seems like environment path is truncated to /bin:/usr/bin
The problem is that under OSX python3 (installed via Homebrew) is under /usr/local/bin
What would be a correct way to adjust default environment?
The text was updated successfully, but these errors were encountered: