Created
April 13, 2013 04:01
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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