Pin more-itertools for python2 21/61721/4
authorAric Gardner <agardner@linuxfoundation.org>
Fri, 13 Sep 2019 15:31:00 +0000 (11:31 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Fri, 13 Sep 2019 16:52:26 +0000 (12:52 -0400)
Pin more-itertools for python2 tox-install
tox-pyenv requires more-itertools.
Force to a compatible version if pip installed
via python2

Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: Ia5ade84925cdc6eac2f3407cb732eaf4946769e4

releasenotes/notes/tox-install-8864409ad7415d5d.yaml [new file with mode: 0644]
shell/tox-install.sh

diff --git a/releasenotes/notes/tox-install-8864409ad7415d5d.yaml b/releasenotes/notes/tox-install-8864409ad7415d5d.yaml
new file mode 100644 (file)
index 0000000..97239b5
--- /dev/null
@@ -0,0 +1,8 @@
+---
+fixes:
+  - |
+    Pip install pyenv from python2 should force more-itertools to 5.0.0
+    In a fresh python2.7 venv "pip install pyenv" correctly pulls down
+    more-itertools [required: Any, installed: 5.0.0]
+    If for some reason a higher version is already installed this will downgrade
+    more-itertools to a py2 compatible version
index 25ff3ca..3734a7f 100644 (file)
@@ -15,6 +15,13 @@ echo "---> tox-install.sh"
 set -eux -o pipefail
 
 # Tox version is pulled in through detox to mitigate version conflict
-$PYTHON -m pip install --user --quiet --upgrade tox-pyenv
+
+
+if [[ $PYTHON == "python2" ]]; then
+    $PYTHON -m pip install --user --quiet --upgrade tox-pyenv more-itertools~=5.0.0
+else
+    $PYTHON -m pip install --user --quiet --upgrade tox-pyenv
+fi
+
 
 $PYTHON -m pip freeze