|
@ -94,8 +94,8 @@ termux_step_create_debscripts () { |
|
|
echo 'if [ $1 != "remove" ]; then exit 0; fi' >> prerm |
|
|
echo 'if [ $1 != "remove" ]; then exit 0; fi' >> prerm |
|
|
# Uninstall everything installed through pip: |
|
|
# Uninstall everything installed through pip: |
|
|
echo "pip2 freeze 2> /dev/null | xargs pip2 uninstall -y > /dev/null 2> /dev/null" >> prerm |
|
|
echo "pip2 freeze 2> /dev/null | xargs pip2 uninstall -y > /dev/null 2> /dev/null" >> prerm |
|
|
# Cleanup __pycache__ folders |
|
|
# Cleanup *.pyc files |
|
|
echo "find $TERMUX_PREFIX/lib/python${_MAJOR_VERSION} -depth -name __pycache__ -exec rm -rf {} \;" >> prerm |
|
|
echo "find $TERMUX_PREFIX/lib/python${_MAJOR_VERSION} -depth -name *.pyc -exec rm -rf {} \;" >> prerm |
|
|
# Remove contents of site-packages/ folder: |
|
|
# Remove contents of site-packages/ folder: |
|
|
echo "rm -Rf $TERMUX_PREFIX/lib/python${_MAJOR_VERSION}/site-packages/*" >> prerm |
|
|
echo "rm -Rf $TERMUX_PREFIX/lib/python${_MAJOR_VERSION}/site-packages/*" >> prerm |
|
|
# Remove pip and easy_install installed by ensurepip in postinst: |
|
|
# Remove pip and easy_install installed by ensurepip in postinst: |
|
|