pyosmium icon indicating copy to clipboard operation
pyosmium copied to clipboard

Test failures under PyPy

Open lonvia opened this issue 5 years ago • 3 comments

The new dangling reference tests fail under Pypy2 and Pypy3. It keeps references more references to the osmium object than it should. It is not quite clear if this is because we are making the wrong assumptions or pybind11 doesn't play well with Pypy.

For the moment, I would assume the latter and exclude support for Pypy.

lonvia avatar Feb 20 '20 21:02 lonvia

As I see in the new PyPy release notes (2021-04-08) .. recommending HPy "A major new feature is prelminary support for the Universal mode of HPy: a new way of writing c-extension modules to totally encapsulate PyObject*. " ( --> https://hpyproject.org/ )

Links:

  • https://hpyproject.org/blog/posts/2021/03/hello-hpy/
  • https://lwn.net/Articles/851202/ "HPy: a better C API for Python?" ( March 31, 2021 )

ImreSamu avatar Apr 09 '21 18:04 ImreSamu

Interesting project but it's in a very early alpha state, so something to look at in a year or two earliest. Ideally pybind11 simply provides support for it.

lonvia avatar Apr 10 '21 13:04 lonvia

Pypy3 now seems to work but at least one test is slow to the point of being unusable. CI also has issues when running with a self-compiled shapely. Both needs further investigation.

lonvia avatar Dec 13 '22 10:12 lonvia