Skip to content

Commit

Permalink
travis: Patch PyQt on OS X.
Browse files Browse the repository at this point in the history
This is to circumvent Homebrew/legacy-homebrew#45114
The build takes a lot longer now, but at least it works.
  • Loading branch information
The-Compiler committed Oct 19, 2015
1 parent 7519694 commit 5fce514
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,3 @@ matrix:
env: TESTENV=pylint
- os: osx
env: TESTENV=eslint
# https://github.com/Homebrew/homebrew/issues/45114
allow_failures:
- os: osx
env: TESTENV=py35
15 changes: 12 additions & 3 deletions scripts/dev/ci_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,20 @@ def check_setup(executable):
print("brew update...")
brew(['update'], silent=True)

# https://github.com/Homebrew/homebrew/issues/45114
print("Patching PyQt formula...")
brew_path = subprocess.check_output(['brew', '--prefix']).strip()
pyqt_file = os.path.join(brew_path, 'Library', 'Formula', 'pyqt5.rb')
os.remove(pyqt_file)
urllib.urlretrieve(
'https://raw.githubusercontent.com/UniqMartin/homebrew/023a20a7959680952d166beca66d2995439d4540/Library/Formula/pyqt5.rb',
pyqt_file)

print("Installing packages...")
pkgs = ['python3']
brew(['install', 'python3'])
if INSTALL_PYQT:
pkgs.append('pyqt5')
brew(['install'] + pkgs)
brew(['install', 'qt5', 'sip'])
brew(['install', 'pyqt5', '--build-from-source'])

print("Installing tox...")
subprocess.check_call(['sudo', 'pip3', 'install', 'tox'])
Expand Down

0 comments on commit 5fce514

Please sign in to comment.