Fix fusesoc dependency breakage using python-requirements.txt
In #302, azure-pipelines.yml was modified to ensure that attrs 19.1.0 is
installed. This is because 19.2.0 breaks FuseSoC via the simplesat
dependency (see https://github.com/enthought/sat-solver/issues/270).
While the edits to azure-pipelines.yml fixed CI, users following the
getting started guide are still going to run into this issue. This
commit addresses the problem in an alternative way - by specifying the
version of attrs to use in python-requirements.txt.
Introducing a constraints.txt could have advantages, but that is more
intrusive and would require further doc updates. I feel that would be
overkill for a quick fix workaround that we hope to remove quite
rapidly.
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 64f37b6..81ae8bd 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -99,7 +99,7 @@
steps:
- bash: |
sudo apt-get install -y python3 python3-pip build-essential srecord python3-setuptools zlib1g-dev libusb-1.0 \
- && sudo pip3 install -r python-requirements.txt && sudo pip3 uninstall attrs -y && sudo pip3 install attrs==19.1.0
+ && sudo pip3 install -r python-requirements.txt
displayName: 'Install dependencies'
- bash: |
export TOOLCHAIN_PATH="${TOOLCHAIN_PATH}"
@@ -113,7 +113,6 @@
- bash: |
sudo apt-get install -y python3 python3-pip build-essential srecord python3-setuptools zlib1g-dev libusb-1.0 \
&& sudo pip3 install -r python-requirements.txt \
- && sudo pip3 uninstall attrs -y && sudo pip3 install attrs==19.1.0 \
&& sudo apt-get install git make autoconf g++ flex bison curl
displayName: 'Install dependencies'
- bash: |
@@ -151,8 +150,7 @@
steps:
- bash: |
sudo apt-get install -y python3 python3-pip build-essential srecord python3-setuptools zlib1g-dev libusb-1.0 \
- && sudo pip3 install -r python-requirements.txt \
- && sudo pip3 uninstall attrs -y && sudo pip3 install attrs==19.1.0
+ && sudo pip3 install -r python-requirements.txt
displayName: 'Install dependencies'
- bash: |
set -e