Repository navigation
Add lgpl license - #116
Merged
Merged
Add lgpl license#116
Conversation
Collaborator
|
@jorgensd I have no objection |
Contributor
|
@jorgensd I have no objection either, as long as it allows for greater usage. |
Contributor
|
@jorgensd no objection! 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an LGPL 3.0 license to turtle.
@keiyamamo, @aslakbergersen, @albansouche, @dbruneau-mie, @johannesring
Please let me know if you have anything against this change.
GPL vs. LGPL:
If someone builds an application using a GPL library and distributes it, the GPL requires their entire application to be open-sourced under the GPL. The LGPL, however, allows developers to use our library in private, commercial, or closed-source applications without having to open-source their own proprietary code, provided they "dynamically link" to our library. How this works in Python:
Because Python is an interpreted language, the standard import turtle mechanism acts as dynamic linking. As long as the closed-source developer relies on the user installing turtle separately (e.g., via pip), the end-user can easily swap out the library with a modified version. This perfectly satisfies the LGPL, meaning closed-source developers are completely safe using standard imports.The Bundling Exception (PyInstaller):
The only catch for closed-source developers is if they use tools like PyInstaller or cx_Freeze to bundle their application and turtle together into a single, standalone executable. This acts like static linking. Because the end-user can no longer easily swap out the turtle library, the closed-source developer would violate the LGPL unless they provide object files or another way for the user to relink the app (which is very difficult in Python).
Modifying Turtle:
If anyone modifies the source code of Turtle itself and distributes it, those modifications must always be shared under the LGPL.
In-House
Usage:
Neither license restricts commercial use if the code is strictly run in-house. Both the GPL and LGPL are triggered exclusively by distribution. If a company uses the code internally on their own servers or machines, they are not distributing it, and no source code sharing is required.