Skip to content

Commit

Permalink
[internal] Fix AWS CLI breaking due to Python 2 usage (pantsbuild#12364)
Browse files Browse the repository at this point in the history
# Delete this line to force CI to run the JVM tests.
[ci skip-jvm-tests]
  • Loading branch information
Eric-Arellano authored and stuhood committed Oct 6, 2021
1 parent 4f5b7a1 commit c496b8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build-support/bin/install_aws_cli_for_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ fi

AWS_CLI_BIN="${AWS_CLI_ROOT}/bin/aws"

# We first check if AWS CLI is already installed thanks to Travis's cache.
if [[ ! -x "${AWS_CLI_BIN}" ]]; then

TMPDIR=$(mktemp -d)
Expand All @@ -26,7 +25,9 @@ if [[ ! -x "${AWS_CLI_BIN}" ]]; then

curl --fail "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
./awscli-bundle/install --install-dir "${AWS_CLI_ROOT}"
# NB: We must run this with python3 because it defaults to `python`, which refers to Python 2 in Linux GitHub
# Actions CI job and is no longer supported.
python3 ./awscli-bundle/install --install-dir "${AWS_CLI_ROOT}"

popd

Expand Down

0 comments on commit c496b8f

Please sign in to comment.