File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -72,15 +72,14 @@ make altinstall LDFLAGS="-Wl,--strip-all"
7272rm -rf /tmp/pyinstall
7373ln -sf /usr/bin/python${PY_SHORT} /usr/bin/python
7474ln -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
7779cd /
7880/usr/bin/python3.9 -m pip install --upgrade pip
7981pip -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
8584find /usr/lib/ -depth \( -type d -a -not -wholename ' */ansible/plugins/test' -a \( -name test -o -name tests -o -name idle_test \) \) -exec rm -rf ' {}' \;
8685find /usr/lib/ -depth \( -type f -a -name ' *.pyc' -o -name ' *.pyo' -o -name ' *.a' \) -exec rm -rf ' {}' \;
@@ -111,7 +110,3 @@ echo "
111110# Clean
112111microdnf clean all
113112rm -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
You can’t perform that action at this time.
0 commit comments