try setting mingw compiler at different levels
@echo on
+set CFG=%USERPROFILE%\pydistutils.cfg
+echo [config] > "%CFG%"
+echo compiler=mingw32 >> "%CFG%"
+echo [build] >> "%CFG%"
+echo compiler=mingw32 >> "%CFG%"
+echo [build_ext] >> "%CFG%"
+echo compiler=mingw32 >> "%CFG%"
+
if exist %PREFIX%\Scripts\f2py.exe (
set F2PY=%PREFIX%\Scripts\f2py.exe
) else (
set F2PY=%PREFIX%\Scripts\f2py.bat
)
-mkdir "%SRC_DIR%\dist"
-
"%PYTHON%" setup.py build ^
- --compiler=mingw32 ^
-G "MinGW Makefiles" ^
-- ^
-DF2PY_EXECUTABLE:FILEPATH="%F2PY%"
