Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for pypy #327

Merged
merged 1 commit into from
Jan 27, 2014
Merged

Add support for pypy #327

merged 1 commit into from
Jan 27, 2014

Conversation

carlosmn
Copy link
Member

Fortunately pypy provides support for a lot of the CPython API, so the
changes are minimal.

The most important changes are:

  • constructors always get a keyword argument dictionary, even if no
    keyword arguments are passed
  • trying to assign to a read-only attribute raises TypeError instead of
    AttributeError

Apart from that, pypy does not provide MAXPATHLEN. There is a hack in
place currently, but there is only place that's using that macro, and
there shouldn't be a need for it much longer.

This fixes #209.


According to Travis docs, the PPA packages they use have a faulty pypy-dev package currently, so we won't be able to run the tests there 😦

Fortunately pypy provides support for a lot of the CPython API, so the
changes are minimal.

The most important changes are:

- constructors always get a keyword argument dictionary, even if no
  keyword arguments are passed

- trying to assign to a read-only attribute raises TypeError instead of
  AttributeError

Apart from that, pypy does not provide MAXPATHLEN. There is a hack in
place currently, but there is only place that's using that macro, and
there shouldn't be a need for it much longer.

This fixes libgit2#209.
@jdavid jdavid merged commit 30084e0 into libgit2:master Jan 27, 2014
@carlosmn carlosmn deleted the pypy branch January 29, 2014 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support for pypy
2 participants