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 <rep...@bugs.python.org>
<http://bugs.python.org/issue25251>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to