Skip to content

Commit

Permalink
CST-10 znick#336 some tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailyumanov committed Mar 13, 2021
1 parent 1dc38fd commit 8dd5111
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 28 deletions.
42 changes: 15 additions & 27 deletions deploy_local_beta/deploy_local_beta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,24 @@ then
echo "Execute \`. deploy_local_beta/run.sh\` from repository root instead."
else

# GIT SUBMODULES
################

# CHECK PYTHON PATH
###################
ANYBETA_report
ANYBETA_report "Init submodules"
git submodule init
git submodule update

# if ! test -e $ANYBETA_PYTHON_PATH
# then
# ANYBETA_error "Bad python path: $ANYBETA_PYTHON_PATH"
# else
# CHOOSE RIGHT VERSION
######################

ANYBETA_PYTHON_VERSION_CHECK="from __future__ import print_function; import sys; print(int(sys.version_info < (3, 3)))"

# CLONE REPOSITORY
##################

ANYBETA_report
ANYBETA_report "Init submodules"
git submodule init
git submodule update


# CHOOSE RIGHT VERSION
######################

ANYBETA_PYTHON_VERSION_CHECK="from __future__ import print_function; import sys; print(int(sys.version_info < (3, 3)))"

if test `$ANYBETA_PYTHON_PATH -c "$ANYBETA_PYTHON_VERSION_CHECK"` -eq 1
then
. $ANYBETA_DEPLOY/deploy_local_beta_python2.sh
else
. $ANYBETA_DEPLOY/deploy_local_beta_python3.sh
fi

if test `$ANYBETA_PYTHON_PATH -c "$ANYBETA_PYTHON_VERSION_CHECK"` -eq 1
then
. $ANYBETA_DEPLOY/deploy_local_beta_python2.sh
else
. $ANYBETA_DEPLOY/deploy_local_beta_python3.sh
fi

fi
1 change: 0 additions & 1 deletion deploy_local_beta/deploy_local_beta_python2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ else

ANYBETA_report
ANYBETA_report "Enable virtualenv"

virtualenv -p $ANYBETA_PYTHON_PATH $ANYBETA_VENV_NAME
ANYBETA_activate

Expand Down

0 comments on commit 8dd5111

Please sign in to comment.