Skip to content

Commit 8538802

Browse files
Include specific (L)GPL LICENSE file in Qt wheels
Instead of including a generic LICENSE file containing the text of both the LGPL and the GPL in Qt wheels, a specific LGPL or GPL LICENSE file is now included. Resolves #24
1 parent 4df8b97 commit 8538802

File tree

3 files changed

+165
-192
lines changed

3 files changed

+165
-192
lines changed

pyqtbuild/bundle/qt_wheel.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ def qt_wheel(package, qt_dir, build_tag, suffix, msvc_runtime, openssl,
172172

173173
if build_tag:
174174
d.write('Build: {}\n'.format(build_tag))
175+
elif proto.startswith('LICENSE.'):
176+
if proto.endswith('.lgpl3' if lgpl else '.gpl3'):
177+
shutil.copy(src, os.path.join(distinfo_dir, 'LICENSE'))
175178
else:
176179
shutil.copy(src, dst)
177180

pyqtbuild/bundle/qt_wheel_distinfo/LICENSE renamed to pyqtbuild/bundle/qt_wheel_distinfo/LICENSE.gpl3

Lines changed: 0 additions & 192 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
GENERAL
2-
-------
3-
4-
Qt is available under a commercial license with various pricing models and packages that meet a variety of needs. Commercial Qt license keeps your code proprietary where only you can control and monetize on your end product’s development, user experience and distribution. You also get great perks like additional functionality, productivity enhancing tools, world-class support and a close strategic relationship with The Qt Company to make sure your product and development goals are met.
5-
6-
Qt has been created under the belief of open development and providing freedom and choice to developers. To support that, The Qt Company also licenses Qt under open source licenses, where most of the functionality is available under LGPLv3. It should be noted that the tools as well as some add-on components are available only under GPLv3. In order to preserve the true meaning of open development and uphold the spirit of free software, it is imperative that the rules and regulations of open source licenses are followed. If you use Qt under open-source licenses, you need to make sure that you comply with all the licenses of the components you use.
7-
8-
Qt also contains some 3rd party components that are available under different open-source licenses. Please refer to the documentation for more details on 3rd party licenses used in Qt.
9-
10-
11-
GPLv3 and LGPLv3
12-
----------------
13-
14-
GNU LESSER GENERAL PUBLIC LICENSE
15-
16-
The Qt Toolkit is Copyright (C) 2017 The Qt Company Ltd.
17-
Contact: https://www.qt.io/licensing
18-
19-
You may use, distribute and copy the Qt GUI Toolkit under the terms of
20-
GNU Lesser General Public License version 3, which supplements GNU General
21-
Public License Version 3. Both of the licenses are displayed below.
22-
23-
-------------------------------------------------------------------------
24-
25-
261
GNU GENERAL PUBLIC LICENSE
272
Version 3, 29 June 2007
283

@@ -697,170 +672,3 @@ may consider it more useful to permit linking proprietary applications with
697672
the library. If this is what you want to do, use the GNU Lesser General
698673
Public License instead of this License. But first, please read
699674
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
700-
701-
702-
-------------------------------------------------------------------------
703-
704-
GNU LESSER GENERAL PUBLIC LICENSE
705-
Version 3, 29 June 2007
706-
707-
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
708-
Everyone is permitted to copy and distribute verbatim copies of this
709-
license document, but changing it is not allowed.
710-
711-
This version of the GNU Lesser General Public License incorporates
712-
the terms and conditions of version 3 of the GNU General Public
713-
License, supplemented by the additional permissions listed below.
714-
715-
0. Additional Definitions.
716-
717-
As used herein, “this License” refers to version 3 of the GNU Lesser
718-
General Public License, and the “GNU GPL” refers to version 3 of the
719-
GNU General Public License.
720-
721-
“The Library” refers to a covered work governed by this License,
722-
other than an Application or a Combined Work as defined below.
723-
724-
An “Application” is any work that makes use of an interface provided
725-
by the Library, but which is not otherwise based on the Library.
726-
Defining a subclass of a class defined by the Library is deemed a mode
727-
of using an interface provided by the Library.
728-
729-
A “Combined Work” is a work produced by combining or linking an
730-
Application with the Library. The particular version of the Library
731-
with which the Combined Work was made is also called the “Linked
732-
Version”.
733-
734-
The “Minimal Corresponding Source” for a Combined Work means the
735-
Corresponding Source for the Combined Work, excluding any source code
736-
for portions of the Combined Work that, considered in isolation, are
737-
based on the Application, and not on the Linked Version.
738-
739-
The “Corresponding Application Code” for a Combined Work means the
740-
object code and/or source code for the Application, including any data
741-
and utility programs needed for reproducing the Combined Work from the
742-
Application, but excluding the System Libraries of the Combined Work.
743-
744-
1. Exception to Section 3 of the GNU GPL.
745-
746-
You may convey a covered work under sections 3 and 4 of this License
747-
without being bound by section 3 of the GNU GPL.
748-
749-
2. Conveying Modified Versions.
750-
751-
If you modify a copy of the Library, and, in your modifications, a
752-
facility refers to a function or data to be supplied by an Application
753-
that uses the facility (other than as an argument passed when the
754-
facility is invoked), then you may convey a copy of the modified
755-
version:
756-
757-
a) under this License, provided that you make a good faith effort
758-
to ensure that, in the event an Application does not supply the
759-
function or data, the facility still operates, and performs
760-
whatever part of its purpose remains meaningful, or
761-
762-
b) under the GNU GPL, with none of the additional permissions of
763-
this License applicable to that copy.
764-
765-
3. Object Code Incorporating Material from Library Header Files.
766-
767-
The object code form of an Application may incorporate material from
768-
a header file that is part of the Library. You may convey such object
769-
code under terms of your choice, provided that, if the incorporated
770-
material is not limited to numerical parameters, data structure
771-
layouts and accessors, or small macros, inline functions and templates
772-
(ten or fewer lines in length), you do both of the following:
773-
774-
a) Give prominent notice with each copy of the object code that
775-
the Library is used in it and that the Library and its use are
776-
covered by this License.
777-
778-
b) Accompany the object code with a copy of the GNU GPL and this
779-
license document.
780-
781-
4. Combined Works.
782-
783-
You may convey a Combined Work under terms of your choice that, taken
784-
together, effectively do not restrict modification of the portions of
785-
the Library contained in the Combined Work and reverse engineering for
786-
debugging such modifications, if you also do each of the following:
787-
788-
a) Give prominent notice with each copy of the Combined Work that
789-
the Library is used in it and that the Library and its use are
790-
covered by this License.
791-
792-
b) Accompany the Combined Work with a copy of the GNU GPL and this
793-
license document.
794-
795-
c) For a Combined Work that displays copyright notices during
796-
execution, include the copyright notice for the Library among
797-
these notices, as well as a reference directing the user to the
798-
copies of the GNU GPL and this license document.
799-
800-
d) Do one of the following:
801-
802-
0) Convey the Minimal Corresponding Source under the terms of
803-
this License, and the Corresponding Application Code in a form
804-
suitable for, and under terms that permit, the user to
805-
recombine or relink the Application with a modified version of
806-
the Linked Version to produce a modified Combined Work, in the
807-
manner specified by section 6 of the GNU GPL for conveying
808-
Corresponding Source.
809-
810-
1) Use a suitable shared library mechanism for linking with
811-
the Library. A suitable mechanism is one that (a) uses at run
812-
time a copy of the Library already present on the user's
813-
computer system, and (b) will operate properly with a modified
814-
version of the Library that is interface-compatible with the
815-
Linked Version.
816-
817-
e) Provide Installation Information, but only if you would
818-
otherwise be required to provide such information under section 6
819-
of the GNU GPL, and only to the extent that such information is
820-
necessary to install and execute a modified version of the
821-
Combined Work produced by recombining or relinking the Application
822-
with a modified version of the Linked Version. (If you use option
823-
4d0, the Installation Information must accompany the Minimal
824-
Corresponding Source and Corresponding Application Code. If you
825-
use option 4d1, you must provide the Installation Information in
826-
the manner specified by section 6 of the GNU GPL for conveying
827-
Corresponding Source.)
828-
829-
5. Combined Libraries.
830-
831-
You may place library facilities that are a work based on the Library
832-
side by side in a single library together with other library
833-
facilities that are not Applications and are not covered by this
834-
License, and convey such a combined library under terms of your
835-
choice, if you do both of the following:
836-
837-
a) Accompany the combined library with a copy of the same work
838-
based on the Library, uncombined with any other library
839-
facilities, conveyed under the terms of this License.
840-
841-
b) Give prominent notice with the combined library that part of
842-
it is a work based on the Library, and explaining where to find
843-
the accompanying uncombined form of the same work.
844-
845-
6. Revised Versions of the GNU Lesser General Public License.
846-
847-
The Free Software Foundation may publish revised and/or new versions
848-
of the GNU Lesser General Public License from time to time. Such new
849-
versions will be similar in spirit to the present version, but may
850-
differ in detail to address new problems or concerns.
851-
852-
Each version is given a distinguishing version number. If the Library
853-
as you received it specifies that a certain numbered version of the
854-
GNU Lesser General Public License “or any later version” applies to
855-
it, you have the option of following the terms and conditions either
856-
of that published version or of any later version published by the
857-
Free Software Foundation. If the Library as you received it does not
858-
specify a version number of the GNU Lesser General Public License,
859-
you may choose any version of the GNU Lesser General Public License
860-
ever published by the Free Software Foundation.
861-
862-
If the Library as you received it specifies that a proxy can decide
863-
whether future versions of the GNU Lesser General Public License shall
864-
apply, that proxy's public statement of acceptance of any version is
865-
permanent authorization for you to choose that version for the Library.
866-
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
GNU LESSER GENERAL PUBLIC LICENSE
2+
Version 3, 29 June 2007
3+
4+
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
5+
Everyone is permitted to copy and distribute verbatim copies of this
6+
license document, but changing it is not allowed.
7+
8+
This version of the GNU Lesser General Public License incorporates
9+
the terms and conditions of version 3 of the GNU General Public
10+
License, supplemented by the additional permissions listed below.
11+
12+
0. Additional Definitions.
13+
14+
As used herein, “this License” refers to version 3 of the GNU Lesser
15+
General Public License, and the “GNU GPL” refers to version 3 of the
16+
GNU General Public License.
17+
18+
“The Library” refers to a covered work governed by this License,
19+
other than an Application or a Combined Work as defined below.
20+
21+
An “Application” is any work that makes use of an interface provided
22+
by the Library, but which is not otherwise based on the Library.
23+
Defining a subclass of a class defined by the Library is deemed a mode
24+
of using an interface provided by the Library.
25+
26+
A “Combined Work” is a work produced by combining or linking an
27+
Application with the Library. The particular version of the Library
28+
with which the Combined Work was made is also called the “Linked
29+
Version”.
30+
31+
The “Minimal Corresponding Source” for a Combined Work means the
32+
Corresponding Source for the Combined Work, excluding any source code
33+
for portions of the Combined Work that, considered in isolation, are
34+
based on the Application, and not on the Linked Version.
35+
36+
The “Corresponding Application Code” for a Combined Work means the
37+
object code and/or source code for the Application, including any data
38+
and utility programs needed for reproducing the Combined Work from the
39+
Application, but excluding the System Libraries of the Combined Work.
40+
41+
1. Exception to Section 3 of the GNU GPL.
42+
43+
You may convey a covered work under sections 3 and 4 of this License
44+
without being bound by section 3 of the GNU GPL.
45+
46+
2. Conveying Modified Versions.
47+
48+
If you modify a copy of the Library, and, in your modifications, a
49+
facility refers to a function or data to be supplied by an Application
50+
that uses the facility (other than as an argument passed when the
51+
facility is invoked), then you may convey a copy of the modified
52+
version:
53+
54+
a) under this License, provided that you make a good faith effort
55+
to ensure that, in the event an Application does not supply the
56+
function or data, the facility still operates, and performs
57+
whatever part of its purpose remains meaningful, or
58+
59+
b) under the GNU GPL, with none of the additional permissions of
60+
this License applicable to that copy.
61+
62+
3. Object Code Incorporating Material from Library Header Files.
63+
64+
The object code form of an Application may incorporate material from
65+
a header file that is part of the Library. You may convey such object
66+
code under terms of your choice, provided that, if the incorporated
67+
material is not limited to numerical parameters, data structure
68+
layouts and accessors, or small macros, inline functions and templates
69+
(ten or fewer lines in length), you do both of the following:
70+
71+
a) Give prominent notice with each copy of the object code that
72+
the Library is used in it and that the Library and its use are
73+
covered by this License.
74+
75+
b) Accompany the object code with a copy of the GNU GPL and this
76+
license document.
77+
78+
4. Combined Works.
79+
80+
You may convey a Combined Work under terms of your choice that, taken
81+
together, effectively do not restrict modification of the portions of
82+
the Library contained in the Combined Work and reverse engineering for
83+
debugging such modifications, if you also do each of the following:
84+
85+
a) Give prominent notice with each copy of the Combined Work that
86+
the Library is used in it and that the Library and its use are
87+
covered by this License.
88+
89+
b) Accompany the Combined Work with a copy of the GNU GPL and this
90+
license document.
91+
92+
c) For a Combined Work that displays copyright notices during
93+
execution, include the copyright notice for the Library among
94+
these notices, as well as a reference directing the user to the
95+
copies of the GNU GPL and this license document.
96+
97+
d) Do one of the following:
98+
99+
0) Convey the Minimal Corresponding Source under the terms of
100+
this License, and the Corresponding Application Code in a form
101+
suitable for, and under terms that permit, the user to
102+
recombine or relink the Application with a modified version of
103+
the Linked Version to produce a modified Combined Work, in the
104+
manner specified by section 6 of the GNU GPL for conveying
105+
Corresponding Source.
106+
107+
1) Use a suitable shared library mechanism for linking with
108+
the Library. A suitable mechanism is one that (a) uses at run
109+
time a copy of the Library already present on the user's
110+
computer system, and (b) will operate properly with a modified
111+
version of the Library that is interface-compatible with the
112+
Linked Version.
113+
114+
e) Provide Installation Information, but only if you would
115+
otherwise be required to provide such information under section 6
116+
of the GNU GPL, and only to the extent that such information is
117+
necessary to install and execute a modified version of the
118+
Combined Work produced by recombining or relinking the Application
119+
with a modified version of the Linked Version. (If you use option
120+
4d0, the Installation Information must accompany the Minimal
121+
Corresponding Source and Corresponding Application Code. If you
122+
use option 4d1, you must provide the Installation Information in
123+
the manner specified by section 6 of the GNU GPL for conveying
124+
Corresponding Source.)
125+
126+
5. Combined Libraries.
127+
128+
You may place library facilities that are a work based on the Library
129+
side by side in a single library together with other library
130+
facilities that are not Applications and are not covered by this
131+
License, and convey such a combined library under terms of your
132+
choice, if you do both of the following:
133+
134+
a) Accompany the combined library with a copy of the same work
135+
based on the Library, uncombined with any other library
136+
facilities, conveyed under the terms of this License.
137+
138+
b) Give prominent notice with the combined library that part of
139+
it is a work based on the Library, and explaining where to find
140+
the accompanying uncombined form of the same work.
141+
142+
6. Revised Versions of the GNU Lesser General Public License.
143+
144+
The Free Software Foundation may publish revised and/or new versions
145+
of the GNU Lesser General Public License from time to time. Such new
146+
versions will be similar in spirit to the present version, but may
147+
differ in detail to address new problems or concerns.
148+
149+
Each version is given a distinguishing version number. If the Library
150+
as you received it specifies that a certain numbered version of the
151+
GNU Lesser General Public License “or any later version” applies to
152+
it, you have the option of following the terms and conditions either
153+
of that published version or of any later version published by the
154+
Free Software Foundation. If the Library as you received it does not
155+
specify a version number of the GNU Lesser General Public License,
156+
you may choose any version of the GNU Lesser General Public License
157+
ever published by the Free Software Foundation.
158+
159+
If the Library as you received it specifies that a proxy can decide
160+
whether future versions of the GNU Lesser General Public License shall
161+
apply, that proxy's public statement of acceptance of any version is
162+
permanent authorization for you to choose that version for the Library.

0 commit comments

Comments
 (0)