- Download swig from the official website (.zip for Windows), open the zip at the root of the repo
- Enter the
SWIG_DIRvariable of theMakefilewith the name of the folder (ex: swigwin-4.2.0) - Configure the
PYTHON_INCLUDEandPYTHON_LIBenvironment variables on the MinGW Python installation, cf. $(SWIG_DIR)/Doc/Manual/Windows.html#Windows_python
Warning
MinGW only accepts Python libraries in .pyd
make swigpython test.py