From 376559bb77081b4ea6b0f4b58545fad367b4ef3d Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 28 Apr 2022 12:15:46 -0400 Subject: [PATCH] Build: Uninstall pipenv, pip, and setuptools from AppImage Once the dependencies are installed, Pipenv, pip, and setuptools are no longer needed. They take up a combined 45MB of space. --- build_scripts/appimage/appimage.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build_scripts/appimage/appimage.sh b/build_scripts/appimage/appimage.sh index e81291dd0..ad44f92e8 100755 --- a/build_scripts/appimage/appimage.sh +++ b/build_scripts/appimage/appimage.sh @@ -79,6 +79,13 @@ install_monkey_island_python_dependencies() { log_message "Installing island python requirements" "$APPDIR"/AppRun -m pip install -r "${requirements_island}" --ignore-installed || handle_error + + log_message "Uninstalling pipenv" + "$APPDIR"/AppRun -m pip uninstall -y pipenv || handle_error + + log_message "Uninstalling pip" + "$APPDIR"/AppRun -m pip uninstall -y pip setuptools || handle_error + } generate_requirements_from_pipenv_lock () {