Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b7d2ba

Browse files
committed
CI: update how dependencies are installed
1 parent a4fd1c2 commit 7b7d2ba

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

azure-pipelines.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,30 @@ jobs:
2424
versionSpec: '$(python.version)'
2525
architecture: 'x64'
2626

27-
- script: python -m pip install --upgrade pip && pip install -r requirements/testing/travis_all.txt
27+
- script: |
28+
29+
python -m pip install --upgrade pip
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+
2851
displayName: 'Install dependencies'
2952
3053
- script: pip install -ve .
@@ -41,4 +64,3 @@ jobs:
4164
testResultsFiles: '**/test-results.xml'
4265
testRunTitle: 'Python $(python.version)'
4366
condition: succeededOrFailed()
44-

0 commit comments

Comments
 (0)