1. Ronald Oussoren
  2. py2app
  3. Issues


Issue #46 resolved

PyQt Free Edition GPL warning doesn't check PyQt, only Qt

created an issue

When using py2app to create a PyQt application, the sip recipe (sip.py) sets self.warn to True if pyqtconfig.Configuration().qt_edition == 'free'.

qt_edition refers to the distribution of Qt, not PyQt.

Qt is distributed under LGPL, PyQt is distributed under GPL, so whereas one likely can distribute open source Qt under most circumstances, one cannot distribute open source PyQt unless one's project falls completely under GPL.

If self.warn is set (which is the case when using open source Qt), the warning message that is generated reads:

== PyQt Free Edition GPL warning == Your application is including PyQt Free Edition! Please read the terms of the GPL license before distributing this application!

... regardless of the edition of PyQt. In my case, I'm using commercial PyQt with LGPL Qt, but still got this message. I'm not certain how to determine if the version of PyQt one is using is commercial or not, but I don't believe the way that it's done currently is correct.

Comments (6)

  1. Ronald Oussoren repo owner

    I guess the warning code was written when Qt itself was using the GPL license as well, and then it would be a reasonable assumption that someone using the commercial edition of Qt also uses the commercial edition of PyQt.

    I don't know how to fix this issue as I don't have access to the commercial edition of PyQt. I could sent a message to the support@ e-mail address.

    It might be better to just drop the check though, Qt is the only library that gets checked there are no warnings for other packages using the GPL license.

  2. Christopher Case

    Just to throw in my $.02, I vote for just dropping the check. If Qt is the only library getting checked, I think it should just be dropped, and leave it up to the packagers to make sure they've satisfied all the licensing requirements.

  3. Log in to comment