Add PyOS_InputHook

Closed Bitbucket Importer requested to merge bitbucket/declined-pr-631 into branch/default

Created originally on Bitbucket by dmitrymottl (Dmitry A. Mottl)

Changesets for this Pull Request have not been imported, because it had been already declined on Bitbucket. Marked as closed by the import user.

Matplotlib failed to compile on macOS due to lack of PyOS_InputHookin pythonrun.h:

src/_macosx.m:280:5: error: use of undeclared identifier 'PyOS_InputHook'
PyOS_InputHook = wait_for_stdin;

This PR doesn’t fully implements PyOS_InputHook just a declaration.

Although after compile matplotlib doesn’t work with Tk it could be used in Jupiter-notebook:

Merge request reports