Skip to content
Permalink
Browse files
[FLINK-27694][python][build] Move lint-python log location (#19768)
  • Loading branch information
deadwind4 committed May 21, 2022
1 parent 6d17a54 commit 26deac8494d2f177898ec3dce3bfe7a2753c4849
Showing 1 changed file with 8 additions and 8 deletions.
@@ -187,8 +187,8 @@ function install_wget() {
function install_miniconda() {
OS_TO_CONDA_URL=("https://repo.continuum.io/miniconda/Miniconda3-4.7.10-MacOSX-x86_64.sh" \
"https://repo.continuum.io/miniconda/Miniconda3-4.7.10-Linux-x86_64.sh")
print_function "STEP" "download miniconda..."
if [ ! -f "$CONDA_INSTALL" ]; then
print_function "STEP" "download miniconda..."
download ${OS_TO_CONDA_URL[$1]} $CONDA_INSTALL_SH
chmod +x $CONDA_INSTALL_SH
if [ $? -ne 0 ]; then
@@ -203,18 +203,18 @@ function install_miniconda() {
exit 1
fi
fi
print_function "STEP" "download miniconda... [SUCCESS]"
fi
print_function "STEP" "download miniconda... [SUCCESS]"
print_function "STEP" "installing conda..."
if [ ! -d "$CURRENT_DIR/.conda" ]; then
print_function "STEP" "installing conda..."
$CONDA_INSTALL_SH -b -p $CURRENT_DIR/.conda 2>&1 >/dev/null
if [ $? -ne 0 ]; then
echo "install miniconda failed"
exit $CONDA_INSTALL_STATUS
fi
print_function "STEP" "install conda ... [SUCCESS]"
fi
print_function "STEP" "install conda ... [SUCCESS]"
}
# Install some kinds of py env.
@@ -378,23 +378,23 @@ function install_environment() {
# step-1 install wget
# the file size of the miniconda.sh is too big to use "wget" tool to download instead
# of the "curl" in the weak network environment.
print_function "STEP" "installing wget..."
if [ $STEP -lt 1 ]; then
print_function "STEP" "installing wget..."
install_wget ${SUPPORT_OS[$os_index]}
STEP=1
checkpoint_stage $STAGE $STEP
print_function "STEP" "install wget... [SUCCESS]"
fi
print_function "STEP" "install wget... [SUCCESS]"

# step-2 install miniconda
print_function "STEP" "installing miniconda..."
if [ $STEP -lt 2 ]; then
print_function "STEP" "installing miniconda..."
create_dir $CURRENT_DIR/download
install_miniconda $os_index
STEP=2
checkpoint_stage $STAGE $STEP
print_function "STEP" "install miniconda... [SUCCESS]"
fi
print_function "STEP" "install miniconda... [SUCCESS]"

# step-3 install python environment which includes
# 3.6 3.7 3.8

0 comments on commit 26deac8

Please sign in to comment.