You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the Project website there is an intended carve out for script access however it does not show up in the repo, which makes justifying usage for non-gpl projects harder.
Is it possible to add that carveout to the LICENCE file.
It would make life even easier if a dual license with something more permissive like MIT were included as well.
Maybe my understand of the term "carve out" is not correct - but I understand it as "exception".
That's not quite what I have in mind. There is not exception to the GPL. It's a clarification from my side. The statement in the license terms is about a special use case - when you run scripts inside the application. Depending on the interpretation, you can call that derived work, because the Python code is dependent on the KLayout runtime API. On the other hand, one could argue that the script would run with a compatible module in the same way. Hence, running a Python script does not qualify as "derived work" in a sense of being strictly dependent and being fused into a single executable like "linking" works.
I was asked for a statement here and the "exception" is actually just a clarification of my interpretation. It's an attempt to provide safer legal grounds for script users. From the source code perspective - and this is what you address here - there is no change. The source code is GPL without exceptions. Dual license is not an option for me.
I wonder what you mean by "usage for non-gpl projects". That is a broad term.
Activity
klayoutmatthias commentedon Jul 30, 2026
Hi @tletnes,
Maybe my understand of the term "carve out" is not correct - but I understand it as "exception".
That's not quite what I have in mind. There is not exception to the GPL. It's a clarification from my side. The statement in the license terms is about a special use case - when you run scripts inside the application. Depending on the interpretation, you can call that derived work, because the Python code is dependent on the KLayout runtime API. On the other hand, one could argue that the script would run with a compatible module in the same way. Hence, running a Python script does not qualify as "derived work" in a sense of being strictly dependent and being fused into a single executable like "linking" works.
I was asked for a statement here and the "exception" is actually just a clarification of my interpretation. It's an attempt to provide safer legal grounds for script users. From the source code perspective - and this is what you address here - there is no change. The source code is GPL without exceptions. Dual license is not an option for me.
I wonder what you mean by "usage for non-gpl projects". That is a broad term.
Matthias