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

Fix tests for --incompatible_use_python_toolchains - #104

Merged
brandjon merged 1 commit into
masterfrom
brandjon-toolchain
May 13, 2019
Merged

Fix tests for --incompatible_use_python_toolchains#104
brandjon merged 1 commit into
masterfrom
brandjon-toolchain

Conversation

@brandjon

Copy link
Copy Markdown
Contributor

This adds a hook file for run_tests.sh to write toolchain info to before each bazel invocation. This replaces the legacy way of passing an interpreter in via --python_path.

It also replaces a config_setting that was used to control whether PY2 or PY3 was used, with a simple constant symbol consumed at loading time. This is needed in order to make the target aware at analysis time of which version it is building for.

Fixes #98, fixes #102.

This adds a hook file for run_tests.sh to write toolchain info to before each bazel invocation. This replaces the legacy way of passing an interpreter in via --python_path.

It also replaces a config_setting that was used to control whether PY2 or PY3 was used, with a simple constant symbol consumed at loading time. This is needed in order to make the target aware at analysis time of which version it is building for.

Fixes #98, fixes #102.
@brandjon

Copy link
Copy Markdown
Contributor Author

@aaliddell, @tmc, I don't think github's UI will let me add you as reviewers since you don't have write access, but I would appreciate comments before I merge.

@aaliddell aaliddell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK to me, not much more to add

@tmc

tmc commented May 13, 2019

Copy link
Copy Markdown

This seems reasonable to me.

@brandjon

Copy link
Copy Markdown
Contributor Author

Thanks, merging.

@brandjon
brandjon merged commit 9c7b3e7 into master May 13, 2019
@brandjon
brandjon deleted the brandjon-toolchain branch May 13, 2019 16:34
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.

Fix tests to use proper select() for python version Build fails with bazel 0.25 --incompatible_use_python_toolchains

3 participants