Skip to content

Commit

Permalink
python updated?
Browse files Browse the repository at this point in the history
  • Loading branch information
MAKOMO committed Oct 4, 2023
1 parent 70a60f4 commit 25a8d98
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .ci/install-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,23 @@ if [ -n "${PYUPGRADE_V:-}" ]; then
source ${VIRTUAL_ENV}/bin/activate
deactivate
# brew update Python
export HOMEBREW_NO_INSTALL_CLEANUP=TRUE # no cleanup here, not to delete libs needed by curl!
# export HOMEBREW_NO_INSTALL_CLEANUP=TRUE # no cleanup here, not to delete libs needed by curl!
brew update && brew upgrade python # no "brew cleanup" here, not to delete libs needed by curl!
# relink Python
brew unlink python@${PYTHON_V} && brew link --force --overwrite python@${PYTHON_V}
hash -r
brew install jq
# add path
# export PATH="$(brew --prefix)/Cellar/python@${PYTHON_V}/${PYUPGRADE_V}/bin:${PATH}"
export PATHT="$(brew --prefix)/Cellar/python@${PYTHON_V}/${PYUPGRADE_V}/bin:${PATH}"
echo $PATHT
export PATH="$(brew --cellar python@${PYTHON_V})/$(brew info --json python@${PYTHON_V} | jq -r '.[0].installed[0].version')/bin:${PATH}"
echo $PATH
which python3
python3 --version
# we upgrade libidn2 and curl to prevent issues caused by the previous python update
# on running curl for later upload (libunistring.2.dylib not found)
brew upgrade libidn2
brew upgrade curl
brew upgrade libidn2 # 2.3.4 -> 2.3.4_1
# brew upgrade curl # already up to date

# create new venv
python3 -m venv /Users/appveyor/venv${PYUPGRADE_V}
Expand Down

0 comments on commit 25a8d98

Please sign in to comment.