aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTING.md2
-rwxr-xr-xextras/scripts/postsubmit-helper.sh2
-rw-r--r--tests/BUILD1
-rw-r--r--tests/build_defs.bzl1
4 files changed, 2 insertions, 4 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index b43cff7..f1dc344 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -187,7 +187,7 @@ because all tests will be re-run anyway.
```bash
cd $PATH_TO_FRUIT/extras/bazel_root
-bazel test --force_python=PY3 \
+bazel test --python_path=/usr/bin/python3 \
--test_output=errors \
--test_summary=terse \
//third_party/fruit/...
diff --git a/extras/scripts/postsubmit-helper.sh b/extras/scripts/postsubmit-helper.sh
index 332aa0e..4f6fcaa 100755
--- a/extras/scripts/postsubmit-helper.sh
+++ b/extras/scripts/postsubmit-helper.sh
@@ -141,7 +141,7 @@ then
else
# COMPILER=bazel
- BAZEL_FLAGS=("--force_python=PY3")
+ BAZEL_FLAGS=("--python_path=$(which python3)")
case "$1" in
DebugPlain) ;;
ReleasePlain) BAZEL_FLAGS+=("-c" "opt") ;;
diff --git a/tests/BUILD b/tests/BUILD
index 21119ee..fa6349f 100644
--- a/tests/BUILD
+++ b/tests/BUILD
@@ -88,7 +88,6 @@ py_library(
name = "fruit_test_common",
srcs = ["fruit_test_common.py", "fruit_test_config.py"],
imports = ["."],
- srcs_version = "PY3",
visibility = ["//third_party/fruit/tests:__subpackages__"],
)
diff --git a/tests/build_defs.bzl b/tests/build_defs.bzl
index 937969c..6cc71c2 100644
--- a/tests/build_defs.bzl
+++ b/tests/build_defs.bzl
@@ -4,7 +4,6 @@ def fruit_py_tests(srcs, data=[]):
native.py_test(
name = filename[:-3],
srcs = [filename],
- srcs_version = "PY3",
imports = ["."],
deps = [
"//third_party/fruit/tests:fruit_test_common",