1
0
mirror of https://github.com/bpozdena/OneDriveGUI.git synced 2026-10-24 04:59:17 +03:00

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.
This commit is contained in:
Boris Pozdena
2026-10-18 11:22:58 +02:00
parent f38f993bb5
commit d56c7c7047

View File

@@ -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: