Skip to content

Commit 6eb2c59

Browse files
cmurphyjharbott
authored andcommitted
Fix six package on opensuse for pip 10
openSUE Leap 15.0 and 15.1 both provide python3-six version 1.11.0. Since version 1.12.0 was released, pip>=10 recognizes the version difference and tries to uninstall the distro-provided version and fails. This change adds another hack to remove the egg-info file for the six library so that pip can manage it directly. We also have to wait to install os-testr until after the fixup has happened since trying to install it triggers the issue. Change-Id: I4649abe06b5893a5251bfcdd4234abccde6ceda2
1 parent e3cd502 commit 6eb2c59

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

stack.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -796,9 +796,6 @@ if [[ "$OFFLINE" != "True" ]]; then
796796
PYPI_ALTERNATIVE_URL=${PYPI_ALTERNATIVE_URL:-""} $TOP_DIR/tools/install_pip.sh
797797
fi
798798

799-
# Install subunit for the subunit output stream
800-
pip_install -U os-testr
801-
802799
TRACK_DEPENDS=${TRACK_DEPENDS:-False}
803800

804801
# Install Python packages into a virtualenv so that we can track them
@@ -816,6 +813,9 @@ fi
816813
source $TOP_DIR/tools/fixup_stuff.sh
817814
fixup_all
818815

816+
# Install subunit for the subunit output stream
817+
pip_install -U os-testr
818+
819819
if [[ "$USE_SYSTEMD" == "True" ]]; then
820820
pip_install_gr systemd-python
821821
# the default rate limit of 1000 messages / 30 seconds is not

tools/fixup_stuff.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ function fixup_suse {
256256
# overwriting works. So this hacks around those packages that
257257
# have been dragged in by some other system dependency
258258
sudo rm -rf /usr/lib/python3.6/site-packages/ply-*.egg-info
259+
sudo rm -rf /usr/lib/python3.6/site-packages/six-*.egg-info
259260
}
260261

261262
# The version of pip(1.5.4) supported by python-virtualenv(1.11.4) has

0 commit comments

Comments
 (0)