Skip to content

Instantly share code, notes, and snippets.

@c0ldlimit
Created April 13, 2013 04:01
Show Gist options
  • Save c0ldlimit/5376865 to your computer and use it in GitHub Desktop.
Save c0ldlimit/5376865 to your computer and use it in GitHub Desktop.
#python building c extensions and getting rid of that "cannot find vcvarsall.bat" on window 7
# http://www.mingw.org/wiki/Getting_Started
# http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/
# install MinGW in C:\MinGW
# Add C:\MinGW\bin to PATH
# Create distutils.cfg in C:\Python27\Lib\distutils\distutils.cfg to be:
# [build]
# compiler=mingw32
# http://stackoverflow.com/questions/6034390/compiling-with-cython-and-mingw-produces-gcc-error-unrecognized-command-line-o
# delete all instances of -mno-cygwin in C:\Python27\Lib\distutils\cygwinccompiler.py
python setup.py build_ext --inplace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment