From d56c7c7047da687c4c32d4ffa65d644e649f528e Mon Sep 17 00:00:00 2001 From: Boris Pozdena Date: Sun, 18 Oct 2026 11:22:58 +0200 Subject: [PATCH] Skip dependency resolution when installing the wheel into the AppDir pip resolves dependencies against the build container, not the AppDir root, so the wheel install reinstalled PySide6_Essentials after the pruning steps and grew the AppImage from ~58 MB to ~87 MB. Dependencies are already installed from requirements.txt earlier in the recipe. --- AppImageBuilder.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/AppImageBuilder.yml b/AppImageBuilder.yml index b915ad9..4546140 100644 --- a/AppImageBuilder.yml +++ b/AppImageBuilder.yml @@ -14,7 +14,10 @@ script: - shopt -s extglob - rm -rf AppDir/usr/local/lib/python3.10/dist-packages/PySide6/Qt/lib/!(libQt6OpenGL*|libQt6XcbQpa*|libQt6Wayland*|libQt6Egl*|libicudata*|libicuuc*|libicui18n*|libQt6DBus*|libQt6Network*|libQt6Qml*|libQt6Core*|libQt6Gui*|libQt6Widgets*|libQt6Svg*|libQt6UiTools*) - python3 -m build - - find dist -type f -name '*.whl' -exec python3 -m pip install --ignore-installed --prefix=/usr --no-cache-dir --root=AppDir {} \; + # --no-deps: dependencies were installed from requirements.txt above and pruned + # since; pip resolves them against the build container, not the AppDir, so + # without this flag it reinstalls PySide6_Essentials and undoes the pruning. + - find dist -type f -name '*.whl' -exec python3 -m pip install --ignore-installed --no-deps --prefix=/usr --no-cache-dir --root=AppDir {} \; AppDir: