dengwirda / inpoly-python

A fast 'point(s)-in-polygon' test for Python.
Other
25 stars 5 forks source link

Building on Python 3.11 #15

Closed SnakeCharmed closed 10 months ago

SnakeCharmed commented 1 year ago

pip install git+https://github.com/dengwirda/inpoly-python.git errors out with: inpoly\inpoly_.c(215): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory

Apparently this is well known, e.g.: https://github.com/cython/cython/issues/4461 and involves longintrepr.h moving from Include/longintrepr.h to Include/cpython/longintrepr.h.

Beyond this, I don't know what I'm doing, but I tried:

... and neither worked, and I'm already beyond what I really understand.

jreniel commented 1 year ago

I also got this error once, but I think doing pip install cython fixed it. Could you try that? Thanks!

krober10nd commented 1 year ago

thanks Jaime, yes that worked for me too.

dengwirda commented 10 months ago

Resolved by @jreniel.

jreniel commented 10 months ago

One small comment, a more thorough solution is to switch the build system to poetry as in https://github.com/dengwirda/inpoly-python/pull/17