Set PATH for osx Python 2.7 builds on Travis to fix the deployment stage
Because cibuildwheel doesn't install a new Python for Python 2.7, the PATH
is never set to point to the location where pip installed packages install
scripts. This results in twine not being found in the deploy stage.
@@ -50,7 +50,8 @@ matrix:
os: osx
language: generic
env:
- - PIP=pip2
+ - PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH"
+ - PIP=pip
- CIBW_BUILD=cp27-*
- CIBW_TEST_COMMAND="pytest {project}/tests"
- CIBW_BEFORE_BUILD="${PIP} install -U pip; ${PIP} install .; $PIP install .[tests]"
