<HTML>
<HEAD>
<TITLE>Building PyQt Debug on Windows</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>In case anyone is interested, here is a small python script that fixes the qt sources to properly finish a debug build after configure is run. This might save you a couple hours if you need to make debug versions.<BR>
<BR>
It appears that qpycore.lib should be dqpycore.lib and so on but configure misnames them in the make files.<BR>
<BR>
“””usage, run configure.py specifying a debug build,<BR>
Then run this script from the same place as configure.py is located.”””<BR>
import os<BR>
<BR>
for root, dirs, files in os.walk("."):<BR>
for f in files:<BR>
if f == "Makefile":<BR>
fn = os.path.join(root,f)<BR>
text = open(fn).read()<BR>
rep = False<BR>
for w in text.split():<BR>
if ".lib" in w and "qpy" in w and "dqpy" not in w:<BR>
text = text.replace( w, "d"+w)<BR>
rep = True<BR>
open(fn,'w').write(text)</SPAN></FONT>
</BODY>
</HTML>