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"
72
72
rm -rf /tmp/pyinstall
73
73
ln -sf /usr/bin/python${PY_SHORT} /usr/bin/python
74
74
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
75
77
76
78
# Install splunk-ansible dependencies
77
79
cd /
78
80
/usr/bin/python3.9 -m pip install --upgrade pip
79
81
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
80
82
81
- # Avoid vulnerability on old pip version
82
- /usr/libexec/platform-python -m pip install --upgrade pip
83
-
84
83
# Remove tests packaged in python libs
85
84
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 ' {}' \;
86
85
find /usr/lib/ -depth \( -type f -a -name ' *.pyc' -o -name ' *.pyo' -o -name ' *.a' \) -exec rm -rf ' {}' \;
@@ -111,7 +110,3 @@ echo "
111
110
# Clean
112
111
microdnf clean all
113
112
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
You can’t perform that action at this time.
0 commit comments