ctypes-example An example of a python package that builds a C++ extension via its setup.py script. Installing the package via pip install . automatically compiles the extension. Some useful resources, I followed: https://stackoverflow.com/questions/4529555/building-a-ctypes-based-c-library-with-distutils https://nesi.github.io/perf-training/python-scatter/ctypes https://stackoverflow.com/questions/34689210/error-exporting-symbol-when-building-python-c-extension-in-windows