Skip to content

Commit

Permalink
Workaround for missing pip3 on brew (#236)
Browse files Browse the repository at this point in the history
Provide direct path to pip3 in case it is not linked to /usr/local/bin
Workaround until the following is merged:
Homebrew/homebrew-core#57654

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters authored Jul 9, 2020
1 parent ace3553 commit aeab27b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ fi

if [[ -n "${PIP_PACKAGES_NEEDED}" ]]; then
brew install python
pip3 install ${PIP_PACKAGES_NEEDED}
PIP=pip3
if ! which ${PIP}; then
PIP=/usr/local/opt/python/bin/pip3
fi
${PIP} install ${PIP_PACKAGES_NEEDED}
fi

if [[ -z "${DISABLE_CCACHE}" ]]; then
Expand Down

0 comments on commit aeab27b

Please sign in to comment.