[issue25251] Unknown MS Compiler version 1900

Jonathan Hanba report at bugs.python.org
Mon Mar 21 19:44:02 EDT 2016


Jonathan Hanba added the comment:

I just ran across this bug in Python 3.5.1 while trying to build pycrypto using MinGW. I patched the cygwincompiler.py with the attached patch.diff file, and that got me part of the way there.

With the additions made by patch.diff, the MinGW linker then looked for vcruntime140.dll but it could not find it.

With the Python 3.5.1 installation, vcruntime140.dll is located in ./Python35-32 directory, but it is not included in the library directories being passed into MinGW.

To fix this, I had to edit ./Lib/distutils/command/build_ext.py and add to line 141:

    self.library_dirs.append(os.path.join(sys.exec_prefix))

This adds the root of the Python35-32 directory to the library paths used by MinGW.

----------
nosy: +hanbaj

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25251>
_______________________________________


More information about the Python-bugs-list mailing list