Skip to content

Commit 523f3a0

Browse files
nwang92alishamayor
authored andcommitted
Updating python3-apt version (#457)
* Updating python3-apt version * Adding six package
1 parent e7f8fd1 commit 523f3a0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

base/debian-10/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ cp apt_inst.cpython-37m-x86_64-linux-gnu.so apt_inst.so
5959
rm -rf /tmp/python3-apt
6060
# Install splunk-ansible dependencies
6161
cd /
62-
pip -q --no-cache-dir install wheel requests ansible jmespath --upgrade
62+
pip -q --no-cache-dir install six wheel requests ansible jmespath --upgrade
6363
# Remove tests packaged in python libs
6464
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 '{}' \;
6565
find /usr/lib/ -depth \( -type f -a -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) -exec rm -rf '{}' \;

base/debian-9/install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@ ln -sf /usr/bin/python${PY_SHORT} /usr/bin/python
4848
ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip
4949
# For ansible apt module
5050
cd /tmp
51-
apt-get download python3-apt=1.4.2
52-
dpkg -x python3-apt_1.4.2_amd64.deb python3-apt
53-
rm python3-apt_1.4.2_amd64.deb
51+
apt-get download python3-apt=1.4.3
52+
dpkg -x python3-apt_1.4.3_amd64.deb python3-apt
53+
rm python3-apt_1.4.3_amd64.deb
5454
cp -r /tmp/python3-apt/usr/lib/python3/dist-packages/* /usr/lib/python${PY_SHORT}/site-packages/
5555
cd /usr/lib/python${PY_SHORT}/site-packages/
5656
cp apt_pkg.cpython-35m-x86_64-linux-gnu.so apt_pkg.so
5757
cp apt_inst.cpython-35m-x86_64-linux-gnu.so apt_inst.so
5858
rm -rf /tmp/python3-apt
5959
# Install splunk-ansible dependencies
6060
cd /
61-
pip -q --no-cache-dir install wheel requests ansible jmespath --upgrade
61+
pip -q --no-cache-dir install six wheel requests ansible jmespath --upgrade
6262
# Remove tests packaged in python libs
6363
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 '{}' \;
6464
find /usr/lib/ -depth \( -type f -a -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) -exec rm -rf '{}' \;

base/redhat-8/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ln -sf /usr/bin/python${PY_SHORT} /usr/bin/python
4545
ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip
4646
# Install splunk-ansible dependencies
4747
cd /
48-
pip -q --no-cache-dir install wheel requests ansible jmespath --upgrade
48+
pip -q --no-cache-dir install six wheel requests ansible jmespath --upgrade
4949
# Remove tests packaged in python libs
5050
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 '{}' \;
5151
find /usr/lib/ -depth \( -type f -a -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) -exec rm -rf '{}' \;

0 commit comments

Comments
 (0)