-
-
Notifications
You must be signed in to change notification settings - Fork 54
Fails to build on pypy 7.0 (stdlib 3.5) as pgenheaders.h doesn't exist in pypy #97
Comments
It is an internal python header, though I think it wouldn't be hard for us to provide our own version of it. |
I just checked and it seems we would need to remove includes of |
I could be wrong, but I think is now occurring with the latest official python bits (this is just a standard clone -> config -> make) Reading the What's New With Python 3.8, I noticed the following:
When installing typed-ast leveraging my config-ed python 3.8 alpha, I see the following:
Yes this is an output from |
Hmm. This will require some serious changes to typed-ast. While the 3.8
stdlib ast module can return type comments, it can’t parse Python 2, so we
still need to support building ast27 with 3.8 dev headers.
|
Wasn't that serious of a change fortunately. We've released 1.3.5 which should work under 3.8-dev as it no longer requires pgenheaders.h. I'm going to close this issue since the pgenheaders.h problem is fixed. @Russell-Jones-OxPhys if it still fails to build under pypy in a way that seems like it might be on us, please file another issue! |
Out of curiosity I worked a bit on trying to get this to build on pypy. It seems that there are several internal C API things we would need to copy over for PyPy support. I stopped for now, but so far I have found the following non-public C API items we use:
And public C APIs we use which aren't found:
There is likely more. For There are likely more things missing, but this is as far as I got when experimenting with this. EDIT: so I guess this issue should be re-opened? I don't have the ability to do so as I am not a collaborator however. |
Yeah, it was never meant to run against PyPy. Once PyPy catches up with
Python 3.8 and we stop caring about 2.7 it should be possible to run mypy
under PyPy -- when run under Python 3.8 or later it uses the stdlib ast
module (which has grown APIs to request type comments and to support
earlier grammar versions (to some extent).
|
Drop support for python 3.5 in order to support variable type annotation. Drop support for pypy3 as mypy has issues installing on it which look like python/typed_ast#97
Drop support for python 3.5 in order to support variable type annotation. Drop support for pypy3 as mypy has issues installing on it which look like python/typed_ast#97
OK, it looks like pypy-nightly has started work on 3.8, I'm not sure how far along compatibility is yet |
I'm not sure if this should be filed against typed_ast or pypy, as I can't find many references to pgenheaders.h and no documentation for it. Is this perhaps a situation similar to https://bitbucket.org/pypy/pypy/issues/2687/pypy3-is-missing-pystrhexh-breaking-pysha3 where it's a header file for an internal API?
The text was updated successfully, but these errors were encountered: