osmcode / pyosmium

Python bindings for libosmium
https://osmcode.org/pyosmium
BSD 2-Clause "Simplified" License
316 stars 65 forks source link

Test failures under PyPy #127

Open lonvia opened 4 years ago

lonvia commented 4 years ago

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.

ImreSamu commented 3 years ago

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:

lonvia commented 3 years ago

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 commented 1 year ago

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.