The setup.py + example.pyx given in the docs:
doesn't work on macOS.
The first issue is the error:
example.cpp:603:10: fatal error: 'unordered_map' file not found
because (AFAIU) macOS clang doesn't include the required C++11 lib by default.
This can be solved by adding:
The second issue is that the line
otherwise this causes a (completely uninformative) typerror during the build because library dirs ends up being a list of list instead of a list of string.