Attempting to call cffi.FFI.verify() on windows will produce this error:
distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat
I want to use mingw to compile instead of msvc. I tried to make distutils use mingw by creating c:\Python27\Lib\distutils\distutils.cfg with
[build]
compiler = mingw32
but this doesn't seem to affect cffi, I still get vcvarsall.bat missing error.
So how can I make cffi use gcc/mingw (or in general other C compiler)?
Try to reinstall cffi, now that distutils is properly configured.
For example using easy_install
easy_install cffi
Or even rebuild & install it from source using MinGW that way :
cd cffi-src-dir
python setup.py config --compiler=mingw32 build --compiler=mingw32 install
cd ..
This will make sure that cffi is correctly setup for use with MinGW... I guess...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With