Won't compile on Python 3.7.4
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
Did you try removing fontconfig.c and then python3 setup.py build_ext?
Or try my fork https://github.com/lilydjwg/python-fontconfig.
I did not, as I don't use/have Cython. I just followed the install instructions.
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.
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...