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