python-fontconfig icon indicating copy to clipboard operation
python-fontconfig copied to clipboard

Won't compile on Python 3.7.4

Open prculley opened this issue 6 years ago • 4 comments

Was trying to install on a recent version of Python and got a bunch of errors for attempted access to Python (internal, non-API) structure elements. Apparently the Python guys changed them at some point. I tried the following patch as a quick test, and it seems to work, but I am not totally clear on what was being done here, so please review carefully. patch.zip

prculley avatar Sep 18 '19 15:09 prculley

Did you try removing fontconfig.c and then python3 setup.py build_ext? Or try my fork https://github.com/lilydjwg/python-fontconfig.

lilydjwg avatar Sep 18 '19 16:09 lilydjwg

I did not, as I don't use/have Cython. I just followed the install instructions.

prculley avatar Sep 18 '19 16:09 prculley

Installing latest Cython and rebuilding fontconfig.c as @lilydjwg suggests is a functional workaround. But that doesn't help anyone who is installing through pip or easy_install.

mattiasflodin avatar Feb 06 '20 13:02 mattiasflodin

I submitted a pull request with the re-generated Cython source.

If this repository is no longer maintained (last commit more than 5 years ago), someone should fork it and push an update to PyPI...

DavidMStraub avatar Aug 29 '20 15:08 DavidMStraub