From 57045ecf1d6895d060759ee836b03b0df0e33c6d Mon Sep 17 00:00:00 2001 From: Jack Meixensperger Date: Tue, 18 Jun 2024 14:04:14 -0700 Subject: [PATCH] fix pip3 symlink --- base/redhat-8/install.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/base/redhat-8/install.sh b/base/redhat-8/install.sh index 595a4936..790f7217 100755 --- a/base/redhat-8/install.sh +++ b/base/redhat-8/install.sh @@ -72,15 +72,14 @@ make altinstall LDFLAGS="-Wl,--strip-all" rm -rf /tmp/pyinstall ln -sf /usr/bin/python${PY_SHORT} /usr/bin/python ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip +ln -sf /usr/bin/python${PY_SHORT} /usr/bin/python3 +ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip3 # Install splunk-ansible dependencies cd / /usr/bin/python3.9 -m pip install --upgrade pip pip -q --no-cache-dir install --upgrade "requests_unixsocket<2.29" "requests<2.29" six wheel Mako "urllib3<2.0.0" certifi jmespath future avro cryptography lxml protobuf setuptools ansible -# Avoid vulnerability on old pip version -/usr/libexec/platform-python -m pip install --upgrade pip - # Remove tests packaged in python libs find /usr/lib/ -depth \( -type d -a -not -wholename '*/ansible/plugins/test' -a \( -name test -o -name tests -o -name idle_test \) \) -exec rm -rf '{}' \; find /usr/lib/ -depth \( -type f -a -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) -exec rm -rf '{}' \; @@ -111,7 +110,3 @@ echo " # Clean microdnf clean all rm -rf /install.sh /anaconda-post.log /var/log/anaconda/* - -# Symlink python/pip -ln -sf /usr/bin/python3.9 /usr/bin/python3 -ln -sf /usr/bin/pip3.9 /usr/bin/pip3