With recent changes CMake is now favoring Python 3 instead of Python 2.
As Ubuntu has both versions of the interpreter installed, Azure has thus
started to use Python 3, but will fail due to a missing dependency on
xmlreporting when executing tests. This is caused by us installing
xmlreporting for Python 2, only.
As there is no python3-xmlreporting package available in Ubuntu, install
python3-pip instead and use it to install unittest-xml-reporting.
sudo apt-get install --fix-broken --ignore-missing libsdl2-dev
displayName: 'install libsdl2-dev'
- script: |
- sudo apt-get install --fix-broken --ignore-missing python-xmlrunner
- displayName: 'install python-xmlrunner'
+ sudo apt-get install --fix-broken --ignore-missing python3-pip
+ displayName: 'install python3-pip'
+- script: |
+ pip3 install unittest-xml-reporting
+ displayName: 'install unittest-xml-reporting'
- script: |
rm -rf build
mkdir build