[PyQt] Conflict between setuptools & requirements in official PyQt5 docs

Phil Thompson phil at riverbankcomputing.com
Tue Feb 9 22:09:46 GMT 2016

On 9 Feb 2016, at 4:37 am, Kovid Goyal <kovid at kovidgoyal.net> wrote:
> Surely, the advice should be to keep a module level reference to the
> application global rather than to run code at module level. Like this:
> app = None
> def main():
>    global app
>    app = QApplication([])
>    app.exec_()
> That way you get both behaviors. Although, in my experience, you cannot
> avoid segfaults on exit by relying on sip.setdestroyonexit().

I'll add a section to the "Things to be aware of" part of the docs.


More information about the PyQt mailing list