ok, i just want to confirm.
I patched the cygwinccompiler.py file to /return ['msvcr90'] /(line
77) when /get_msvcr()/ is called.
So if a build the Sip.pyd with mingw, and inspect the result in
DendencyWalker I should see that Sip.pyd depended on MSVCR90 and
not MSVCRTL ?
Because after the patches and a rebuild Sip is still build
with MSVCRTL, it does not feel right, considering all the patches made?
Well, it did not feel right to me either, that's why I filed bugs about
it over at python.org, but it was the way everything worked for me
without crashes.
I have noticed that further down the file it looks like
Mingw32CCompiler class is commented out, should it be like this?
on line 343 /# class Mingw32CCompiler/
Also line 339 looked like this
/self.dll_libraries = [] # get_msvcr()/
I changed it to this
/self.dll_libraries = get_msvcr()/
Is it correct?
Well, I think patch does the right thing, so if it returns nothing, it
works (at least here). I don't remember all my iterations trying to sort
that out, but this is the result which I use. I think returning msvc90
worked as well, but it was actually not necessary (IIRC mingw links to
that one automatically, that was why it was not needed at all?). BTW be
sure to correct the path to ccache.exe, if you use it, or just delete it
altogether from there.
And regarding the pydistutils.cfg file, will it also be automatically
picked up when building Sip.pyd?
At the moment the pydistutils.cfg file is located in the
MSys/home/user folder, is this correct or should it be some
C:\Python2.7 folder?
Distutils expects that file in the home folder, though it is a bit
ambiguous under Windows for me, so I put it in both
os.path.expanduser('~') / and /c/Users/$USERNAME, to make sure. You can
try to delete one and see which one is actually used.
One last thing, how do i know python is using the Mingw32CCompiler
class, is there somehow i can debug/output, to confirm it does use
this class?
You can put something like " print 500*'$' " to see if it is used during
your compilation.
BTW If you want to compile in parallel, add this to your setup.py of the
compilation-hungry package: http://stackoverflow.com/a/13176803/761090 .
HTH, Vaclav
PS you don't need cc me, I am on the list :-)
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public