|
28 | 28 |
|
29 | 29 | python -m pip install --upgrade pip
|
30 | 30 | pip install -r requirements/testing/travis_all.txt -r requirements/testing/travis36.txt
|
31 |
| - # GUI toolkits are pip-installable only for some versions of Python so |
32 |
| - # don't fail if we can't install them. Make it easier to check whether the |
33 |
| - # install was successful by trying to import the toolkit (sometimes, the |
34 |
| - # install appears to be successful but shared libraries cannot be loaded at |
35 |
| - # runtime, so an actual import is a better check). |
36 |
| - python -mpip install --upgrade cairocffi>=0.8 pgi>=0.0.11.2 && |
37 |
| - python -c 'import pgi as gi; gi.require_version("Gtk", "3.0"); from pgi.repository import Gtk' && |
38 |
| - echo 'pgi is available' || |
39 |
| - echo 'pgi is not available' |
40 |
| - python -mpip install --upgrade pyqt5 && |
41 |
| - python -c 'import PyQt5.QtCore' && |
42 |
| - echo 'PyQt5 is available' || |
43 |
| - echo 'PyQt5 is not available' |
44 |
| - python -mpip install --upgrade \ |
45 |
| - -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-14.04 \ |
46 |
| - wxPython && |
47 |
| - python -c 'import wx' && |
48 |
| - echo 'wxPython is available' || |
49 |
| - echo 'wxPython is not available' |
50 | 31 |
|
51 | 32 | displayName: 'Install dependencies'
|
52 |
| - - script: | |
53 |
| -
|
54 |
| - export DISPLAY=:99.0 |
55 |
| - sh -e /etc/init.d/xvfb start |
56 |
| - displayName: 'start x server' |
57 | 33 |
|
58 | 34 | - script: pip install -ve .
|
59 | 35 | displayName: "Install self"
|
|
0 commit comments