Skip to content

Commit 57045ec

Browse files
fix pip3 symlink
1 parent b08dedf commit 57045ec

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

base/redhat-8/install.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,14 @@ make altinstall LDFLAGS="-Wl,--strip-all"
7272
rm -rf /tmp/pyinstall
7373
ln -sf /usr/bin/python${PY_SHORT} /usr/bin/python
7474
ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip
75+
ln -sf /usr/bin/python${PY_SHORT} /usr/bin/python3
76+
ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip3
7577

7678
# Install splunk-ansible dependencies
7779
cd /
7880
/usr/bin/python3.9 -m pip install --upgrade pip
7981
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
8082

81-
# Avoid vulnerability on old pip version
82-
/usr/libexec/platform-python -m pip install --upgrade pip
83-
8483
# Remove tests packaged in python libs
8584
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 '{}' \;
8685
find /usr/lib/ -depth \( -type f -a -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) -exec rm -rf '{}' \;
@@ -111,7 +110,3 @@ echo "
111110
# Clean
112111
microdnf clean all
113112
rm -rf /install.sh /anaconda-post.log /var/log/anaconda/*
114-
115-
# Symlink python/pip
116-
ln -sf /usr/bin/python3.9 /usr/bin/python3
117-
ln -sf /usr/bin/pip3.9 /usr/bin/pip3

0 commit comments

Comments
 (0)