Skip to content

Commit

Permalink
ci: update pip and don't use system python
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jul 3, 2019
1 parent 370f62f commit afdb96f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .travis/osx_setup_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@ curl https://www.python.org/ftp/python/${MPV}/${PKG} > ${DLD}/${PKG}
# install MacPython
sudo installer -pkg ${DLD}/${PKG} -target /

# install latest version of pip
curl https://bootstrap.pypa.io/get-pip.py -o ${DLD}/get-pip.py
python ${DLD}/get-pip.py

# create virtualenv
PP="/Library/Frameworks/Python.framework/Versions/${MPV::3}/bin/python${MPV::3}"
$PP -m venv .env
PYTHON="/Library/Frameworks/Python.framework/Versions/${MPV::3}/bin/python${MPV::3}"
$PYTHON -m venv .env
source .env/bin/activate

pip install --upgrade pip

# install ca certificates
# (resolves [SSL: CERTIFICATE_VERIFY_FAILED])
pip install certifi
Expand Down

0 comments on commit afdb96f

Please sign in to comment.