Skip to content

Commit f9d75a0

Browse files
authored
[build_debian.sh] Freeze pip2 < version 21 (#6597)
**- Why I did it** As per https://pypi.org/project/pip/ pip 21.0 does not not support Python 2 from Jan 2021. Most places in the codebase have already been pinned, but this one was missed. **- How I did it** Pin pip2 < version 21 in build_debian.sh
1 parent 759936c commit f9d75a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_debian.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ done < files/image_config/sysctl/sysctl-net.conf
417417
sudo augtool --autosave "$sysctl_net_cmd_string" -r $FILESYSTEM_ROOT
418418

419419
# Upgrade pip via PyPI and uninstall the Debian version
420-
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip2 install --upgrade pip
420+
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip2 install --upgrade 'pip<21'
421421
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install --upgrade pip
422422
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get purge -y python-pip python3-pip
423423

0 commit comments

Comments
 (0)