This is an automated email from the ASF dual-hosted git repository.

jincheng pushed a commit to branch release-1.9
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.9 by this push:
     new 64eb969  [FLINK-13299][travis][python] fix flink-python failed on 
Travis because of incompatible virtualenv (#9140)
64eb969 is described below

commit 64eb96901761930454f6d9058a31e0104c33dee7
Author: WeiZhong94 <44194288+weizhon...@users.noreply.github.com>
AuthorDate: Wed Jul 17 21:50:44 2019 +0800

    [FLINK-13299][travis][python] fix flink-python failed on Travis because of 
incompatible virtualenv (#9140)
---
 flink-python/dev/lint-python.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/flink-python/dev/lint-python.sh b/flink-python/dev/lint-python.sh
index 66de146..b4f836b 100755
--- a/flink-python/dev/lint-python.sh
+++ b/flink-python/dev/lint-python.sh
@@ -213,7 +213,9 @@ function install_tox() {
         fi
     fi
 
-    $CONDA_PATH install -p $CONDA_HOME -c conda-forge tox -y -q 2>&1 >/dev/null
+    # virtualenv 16.6.2 released in 2019-07-14 is incompatible with py27 and 
py34,
+    # force install an older version(16.0.0) to avoid this problem.
+    $CONDA_PATH install -p $CONDA_HOME -c conda-forge virtualenv=16.0.0 tox -y 
-q 2>&1 >/dev/null
     if [ $? -ne 0 ]; then
         echo "conda install tox failed \
         please try to exec the script again.\

Reply via email to