Merge pull request #4217 from nicoddemus/fix-macos-py37-travis

Fix MacOS py37 on Travis
This commit is contained in:
Daniel Hahler 2018-10-24 17:51:49 +02:00 committed by GitHub
commit 9df1b037d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,11 @@ jobs:
env: TOXENV=py37
before_install:
- brew update
# remove c++ include files because upgrading python as of 2018-10-23, also
# attempts to upgrade gcc, and it fails because the include files already
# exist. removing the include files is one of the solutions recommended by brew
# this workaround might not be necessary in the future
- rm '/usr/local/include/c++'
- brew upgrade python
- brew unlink python
- brew link python