LGPLv3 compliance for a PySide6 single-file portable application
-
Hello Qt community,
I have developed QuickTray, a free, MIT-licensed, open-source Windows application.
Build environment:
- Python 3.14.6
- PySide6 and Shiboken6 6.12.0
- Qt 6.12.0
- PyInstaller 6.22.3
The application is packaged as a single-file portable executable of approximately 29.57 MiB.
I have collected the upstream Qt and PySide6 source archives, licence texts and third-party attribution materials.
The complete application source and PyInstaller build configuration are available on GitHub:
https://github.com/ramcharanreddy-cloud/QuickTrayBefore publishing the executable, I would like to clarify:
- Is single-file PyInstaller distribution permitted under LGPLv3 when sufficient rebuilding materials are provided?
- Can users' ability to rebuild the executable with modified Qt libraries satisfy Section 4(d)(0)?
- What additional source archives, notices or build materials are required?
- Are there any specific compliance requirements for PySide6 applications packaged using PyInstaller?
I would appreciate guidance on distributing the application correctly while retaining its single-file portable format.
Thank you!
-
Hello Qt community,
I have developed QuickTray, a free, MIT-licensed, open-source Windows application.
Build environment:
- Python 3.14.6
- PySide6 and Shiboken6 6.12.0
- Qt 6.12.0
- PyInstaller 6.22.3
The application is packaged as a single-file portable executable of approximately 29.57 MiB.
I have collected the upstream Qt and PySide6 source archives, licence texts and third-party attribution materials.
The complete application source and PyInstaller build configuration are available on GitHub:
https://github.com/ramcharanreddy-cloud/QuickTrayBefore publishing the executable, I would like to clarify:
- Is single-file PyInstaller distribution permitted under LGPLv3 when sufficient rebuilding materials are provided?
- Can users' ability to rebuild the executable with modified Qt libraries satisfy Section 4(d)(0)?
- What additional source archives, notices or build materials are required?
- Are there any specific compliance requirements for PySide6 applications packaged using PyInstaller?
I would appreciate guidance on distributing the application correctly while retaining its single-file portable format.
Thank you!
IANAL, but keep in mind that the LGPLv3 exists as a set of modifications of the GPLv3, which you should also read (and include with your packaging). Specifically, it's section 6 of the GPLv3 which is most relevant.
- Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
Basically, your GitHub repo represents a valid form of conveyance for the application source, and satisfies the distribution requirements of the GPL/LGPL, as long as you include in your application a copy of the license(s), and a link to the GitHub repo. That's all you have to do to have sufficiently "conveyed" the source code.
-
(This assumes that all build instructions, configuration, and steps for re-creating the single-file executable are included in the GitHub repo. Including the PyInstaller packaging parts. But if someone who's cloned your repo can follow the instructions contained within to re-create the single-file application — using either the same or different Qt versions, etc., at their discretion — then you're fine.)
You also don't need to include any of the Qt, Python, PyInstaller, etc. library/tool source within your repo, as long as the build instructions/system are capable of either downloading what's needed at build time, or using a separately-installed copy the user provides. You just need to provide the code that's unique to your application.
-
Thank you for the clarification.
For our actual Windows installer, we have included GPLv3 and LGPLv3 licence texts, third-party notices, replaceable Qt DLLs, public application source code, PyInstaller configuration and version-matched upstream source archives.
Are there any additional Qt-specific source or attribution requirements for redistributing the official PySide6 Windows wheel binaries under LGPLv3?
-
Thank you for the clarification.
For our actual Windows installer, we have included GPLv3 and LGPLv3 licence texts, third-party notices, replaceable Qt DLLs, public application source code, PyInstaller configuration and version-matched upstream source archives.
Are there any additional Qt-specific source or attribution requirements for redistributing the official PySide6 Windows wheel binaries under LGPLv3?
The page https://www.qt.io/development/download-open-source contains both an "Open Source Usage Obligations" section, and a FAQ question "What are my obligations when using Qt under the LGPL?" that covers all of that. The answer to the latter reads,
Firstly, you have to note that all Qt open source modules are not available under LGPLv3 . Some modules are available under GPLv3 for open source usage, and e.g. 3rd party components such as Chromium web engine are provided under LGPLv2.1.
When Qt modules and libraries under the LGPLv3, there are a couple of obligations you will need to fulfill:
- When using Open source software you need to be aware of and track the licensing of each sample, source code sniplet, module and library you use in your project.
- You will need to deliver the complete source code of Qt libraries you used, including all modifications you did or applied, to your users/customers. Alternatively, you need to provide a written offer with instructions on how to get the source code. Please also note that this has to be under your control, so a link to the source code provided by the Qt Project or Qt Company is not sufficient.
- The LGPL allows you to keep your own source code of your application private as long as it is “work that uses” the library. Dynamic linking is usually recommended here.
- The user of your application has to be able to re-link your application against a different or modified version of the Qt library. With LGPLv3 it is also explicitly stated that the user needs to be able to run the re-linked binary on its intended target device. It is your obligation to provide the user with all necessary tools to enable this process. For embedded devices, this includes making the full toolchain used to compile the library available to users. For parts licensed under LGPLv3 you are obliged to provide full instructions on how to install the modified library on the target device (this is not clearly stated with LGPLv2.1, although running the application against the modified version of the library clearly is the stated intention of the license).
- The user of an application or device using LGPL software has to be notified of their rights by providing a copy of the full LGPL terms and conditions text to the end user and displaying a prominent notice about your usage of LGPL software.
The LGPL terms and conditions cannot in any way be restricted by other licensing terms. If an application is not fully complying to the obligations defined in the LGPL, it is not allowed to be distributed at all and you will lose all your rights to the LGPL software.
The GPL has a tighter set of rules than the LGPL (Lesser GPL).
Note that "Please also note that this has to be under your control, so a link to the source code provided by the Qt Project or Qt Company is not sufficient." regarding the Qt sources is at odds with what I said above. Since it's the Qt Project that's licensing the libraries to you, their advice should almost certainly take precedence over mine.
(I can only say that I've never seen an open-source project that uses Qt as a dependency worry about distributing copies of the Qt source, but then I suppose most of them don't distribute binaries produced via PyInstaller so
¯\_(ツ)_/¯.)