Skip to content

Commit 2519348

Browse files
husthycfacebook-github-bot
authored andcommitted
[Binary Push] Update the awscli installation, use conda install rather than brew install (pytorch#49175)
Summary: Pull Request resolved: pytorch#49175 As title ghstack-source-id: 118306312 Test Plan: CI Reviewed By: xta0 Differential Revision: D25466577 fbshipit-source-id: 67a521947db3744695f0ab5f421483ab96d8ed9f
1 parent edbf926 commit 2519348

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.circleci/scripts/binary_ios_upload.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ touch version.txt
3434
echo $(date +%s) > version.txt
3535
zip -r ${ZIPFILE} install src version.txt LICENSE
3636
# upload to aws
37-
brew install awscli
37+
# Install conda then 'conda install' awscli
38+
curl --retry 3 -o ~/conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
39+
chmod +x ~/conda.sh
40+
/bin/bash ~/conda.sh -b -p ~/anaconda
41+
export PATH="~/anaconda/bin:${PATH}"
42+
source ~/anaconda/bin/activate
43+
conda install -c conda-forge awscli --yes
3844
set +x
3945
export AWS_ACCESS_KEY_ID=${AWS_S3_ACCESS_KEY_FOR_PYTORCH_BINARY_UPLOAD}
4046
export AWS_SECRET_ACCESS_KEY=${AWS_S3_ACCESS_SECRET_FOR_PYTORCH_BINARY_UPLOAD}

0 commit comments

Comments
 (0)