Skip to content

support for pypy #209

Closed
Closed
@cholin

Description

@cholin

At the moment pygit2 supports python 2.6, 2.7, 3.1, 3.2 and 3.3. Sadly pypy is not supported yet. I would be happy if we could refactor the code of pygit2 a little bit to support pypy as well. If you try the test suite with pypy you get the following error:

src/pygit2.c:30:20: fatal error: osdefs.h: No such file or directory #include <osdefs.h>

I think the issue are

  • missing osdefs.h in pypy (there is a private ll_os.h but not public accessable)
  • we check for key value parameters in several functions but do specify METH_VARARGS in the PyMethodDef struct. It should be redudant and not compatible with pypy.
  • pypy raises TypeError instead of AttributeError (see https://bugs.pypy.org/issue1108)
  • memory bugs in pygit2

Do you think it's worth the time?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions