Skip to content

Commit

Permalink
Install system-provided autopep8 where available (model-checking#2397)
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig authored Apr 20, 2023
1 parent 588baf0 commit d9cf03a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/setup/ubuntu/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ DEPS=(

# Version specific dependencies.
declare -A VERSION_DEPS
VERSION_DEPS["20.04"]="universal-ctags python-is-python3"
VERSION_DEPS["20.04"]="universal-ctags python-is-python3 python3-autopep8"
VERSION_DEPS["18.04"]="exuberant-ctags"

UBUNTU_VERSION=$(lsb_release -rs)
Expand All @@ -47,11 +47,9 @@ sudo apt-get --yes update
sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes "${DEPS[@]}" ${OTHER_DEPS[@]}

# Add Python package dependencies
PYTHON_DEPS=(
autopep8
)

python3 -m pip install "${PYTHON_DEPS[@]}"
if [[ "x$UBUNTU_VERSION" == "x18.04" ]] ; then
python3 -m pip install autopep8
fi

# Get the directory containing this script
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
Expand Down

0 comments on commit d9cf03a

Please sign in to comment.