[PyQt] Building PyQt Debug on Windows
Brian Kelley
kelley at eyesopen.com
Fri Dec 18 21:46:09 GMT 2009
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.
It appears that qpycore.lib should be dqpycore.lib and so on but configure misnames them in the make files.
"""usage, run configure.py specifying a debug build,
Then run this script from the same place as configure.py is located."""
import os
for root, dirs, files in os.walk("."):
for f in files:
if f == "Makefile":
fn = os.path.join(root,f)
text = open(fn).read()
rep = False
for w in text.split():
if ".lib" in w and "qpy" in w and "dqpy" not in w:
text = text.replace( w, "d"+w)
rep = True
open(fn,'w').write(text)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091218/b69a086c/attachment.html
More information about the PyQt
mailing list