From ffeab5d2bfe74192e95469422479f842175de5fe Mon Sep 17 00:00:00 2001 From: tison Date: Sun, 15 Mar 2020 03:27:41 +0800 Subject: [PATCH] Support configurable python executable in format.sh (#7513) --- ci/travis/format.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/travis/format.sh b/ci/travis/format.sh index 6cddf4d55..4102b5c5f 100755 --- a/ci/travis/format.sh +++ b/ci/travis/format.sh @@ -144,7 +144,10 @@ fi # Ensure import ordering # Make sure that for every import psutil; import setpproctitle # There's a import ray above it. -python ci/travis/check_import_order.py . -s ci -s python/ray/pyarrow_files -s python/ray/thirdparty_files -s python/build -s lib + +PYTHON_EXECUTABLE=${PYTHON_EXECUTABLE:-python} + +$PYTHON_EXECUTABLE ci/travis/check_import_order.py . -s ci -s python/ray/pyarrow_files -s python/ray/thirdparty_files -s python/build -s lib if ! git diff --quiet &>/dev/null; then echo 'Reformatted changed files. Please review and stage the changes.'