Skip to content

Latest commit

 

History

History
63 lines (48 loc) · 2.09 KB

README.md

File metadata and controls

63 lines (48 loc) · 2.09 KB

PySide BaseApp

This Flatpak base app is specifically designed for packaging Flatpak applications that utilize PySide, the official Python bindings for the Qt framework.

If you would like to contribute to the enhancement of this documentation, please feel free to open a pull request against the wiki branch on the GitHub repository.

PySide6 modules included

All PySide6 modules are available with this base app, except for the following:

  • Qt6Quick3D
  • Qt6SerialBus
  • Qt6DataVisualization
  • Qt6Graphs
  • Qt6HttpServer

Note: The above-mentioned modules are missing because they are not available with the Kde runtime nor the Web Engine base app.

Branches Supported

Branch Maintained Note
6.7 Yes Discouraged
6.8 Yes

Note: Each branch represents the latest patch release for that branch version. When the Kde runtime updates the Qt patch version, the branch of PySide6 should also be updated in the manifest file.

Environment Variables

With the 6.8 branch, the following variables can reduce the application bundle size:

  • BASEAPP_REMOVE_WEBENGINE or BASEAPP_REMOVE_PYWEBENGINE to remove WebEngine components and its dependencies
  • BASEAPP_DISABLE_NUMPY to remove the NumPy package

Cleanup

Please make sure to clean up development files from the BaseApp, in the application

cleanup-commands:
  - /app/cleanup-BaseApp.sh

Note: This requirement comes from the Web Engine base app. This script also removes some unnecessary PySide6 binaries.

Usage

id: <your.pyside.app.id>
runtime: org.kde.Platform
runtime-version: '6.8'
sdk: org.kde.Sdk
base: io.qt.PySide.BaseApp
base-version: '6.8'
build-options:
  env:
    - BASEAPP_REMOVE_WEBENGINE=1
    - BASEAPP_DISABLE_NUMPY=1
cleanup-commands:
  - /app/cleanup-BaseApp.sh
modules:
  - name: <Your PySide App>
...