From 3af95bb48390e6f7639593b9dd457e7aee8a45a2 Mon Sep 17 00:00:00 2001 From: Tom Yan Date: Sat, 28 Apr 2018 20:41:28 +0800 Subject: [PATCH] python(2): remove easy_install in prerm --- packages/python/build.sh | 4 ++-- packages/python2/build.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/python/build.sh b/packages/python/build.sh index 0b6c8e51f..e234be710 100644 --- a/packages/python/build.sh +++ b/packages/python/build.sh @@ -96,8 +96,8 @@ termux_step_create_debscripts () { echo "find $TERMUX_PREFIX/lib/python${_MAJOR_VERSION} -depth -name __pycache__ -exec rm -rf {} \;" >> prerm # Remove contents of site-packages/ folder: echo "rm -Rf $TERMUX_PREFIX/lib/python${_MAJOR_VERSION}/site-packages/*" >> prerm - # Remove bin/pip (and bin/pip3* variants) installed by ensurepip in postinst: - echo "rm -f $TERMUX_PREFIX/bin/pip $TERMUX_PREFIX/bin/pip3*" >> prerm + # Remove pip and easy_install installed by ensurepip in postinst: + echo "rm -f $TERMUX_PREFIX/bin/pip $TERMUX_PREFIX/bin/pip3* $TERMUX_PREFIX/bin/easy_install $TERMUX_PREFIX/bin/easy_install-3*" >> prerm echo "exit 0" >> postinst echo "exit 0" >> prerm diff --git a/packages/python2/build.sh b/packages/python2/build.sh index b7dca7018..b1511abff 100644 --- a/packages/python2/build.sh +++ b/packages/python2/build.sh @@ -98,8 +98,8 @@ termux_step_create_debscripts () { echo "find $TERMUX_PREFIX/lib/python${_MAJOR_VERSION} -depth -name __pycache__ -exec rm -rf {} \;" >> prerm # Remove contents of site-packages/ folder: echo "rm -Rf $TERMUX_PREFIX/lib/python${_MAJOR_VERSION}/site-packages/*" >> prerm - # Remove bin/pip2* installed by ensurepip in postinst: - echo "rm -f $TERMUX_PREFIX/bin/pip2*" >> prerm + # Remove pip and easy_install installed by ensurepip in postinst: + echo "rm -f $TERMUX_PREFIX/bin/pip2* $TERMUX_PREFIX/bin/easy_install-2*" >> prerm echo "exit 0" >> postinst echo "exit 0" >> prerm