| # Copyright 2017 The Bazel Authors. All rights reserved. |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| # NOTE(davidgow): This file originally comes from: |
| # https://github.com/bazelbuild/rules_docker/blob/835d20b7272e214b4449b88b6154cfea3544ec99/.bazelrc |
| |
| # The following flags are set to test use of new features for python toolchains |
| # These flags will only work with Bazel 0.25.0 or above. |
| build --incompatible_use_python_toolchains |
| build --host_force_python=PY2 |
| test --incompatible_use_python_toolchains |
| test --host_force_python=PY2 |
| run --incompatible_use_python_toolchains |
| run --host_force_python=PY2 |