pkgdep/rhel: Upgrade pip under centos8, rocky8

Do this prior installing any pip package to make sure they are stable.

Signed-off-by: Michal Berger <michal.berger@intel.com>
Change-Id: I842252fe33b62dddd16858806a7d334cf2139fac
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15292
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Kamil Godzwon <kamilx.godzwon@intel.com>
Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
This commit is contained in:
Michal Berger 2022-11-06 14:37:20 +01:00 committed by Tomasz Zawadzki
parent 3afa8c2f43
commit 66c590e0b4

View File

@ -96,6 +96,12 @@ if echo "$ID $VERSION_ID" | grep -E -q 'centos 8|rhel 8|rocky 8'; then
if [[ ! -e /usr/bin/python && -e /etc/alternatives/python3 ]]; then if [[ ! -e /usr/bin/python && -e /etc/alternatives/python3 ]]; then
ln -s /etc/alternatives/python3 /usr/bin/python ln -s /etc/alternatives/python3 /usr/bin/python
fi fi
# pip3, which is shipped with centos8 and rocky8, is currently providing faulty ninja binary
# which segfaults at each run. To workaround it, upgrade pip itself and then use it for each
# package - new pip will provide ninja at the same version but with the actually working
# binary.
pip3 install --upgrade pip
pip3() { /usr/local/bin/pip "$@"; }
else else
yum install -y python python3-devel yum install -y python python3-devel
fi fi