<font size=2 face="sans-serif">Hi there,</font>
<br>
<br><font size=2 face="sans-serif">I'm building PyQt5 from source to work
with Python 2.</font>
<br><font size=2 face="sans-serif">Things are almost fine I was able to
assemble a wheel that works.</font>
<br>
<br><font size=2 face="sans-serif">The only issue I'm left with is the
qt.conf file, i.e. Qt's paths.</font>
<br><font size=2 face="sans-serif">If I skip the --qtconf-prefix option
I have to add the "plugins" folder manually, when importing PyQt5,
e.g. by adding to PyQt5/__init__.py:</font>
<br>
<br><tt><font size=2>import QtCore</font></tt>
<br>
<br><tt><font size=2>_libpath = _os.path.join(_os.path.dirname(__file__),
'Qt', 'plugins')</font></tt>
<br><tt><font size=2>QtCore.QCoreApplication.setLibraryPaths([_libpath])</font></tt>
<br>
<br><font size=2 face="sans-serif">This seems to do the trick for many
(all?) Qt classes so far, but it e.g. fails to fix the missing paths for
QML components, which I'd like to use.</font>
<br><font size=2 face="sans-serif">Since Qt's search path for a manually
written qt.conf file is the folder of python.exe itself, I unfortunately
cannot include a simple qt.conf file in a wheel (or can I?)</font>
<br>
<br><font size=2 face="sans-serif">So I tried including the prefix in the
build via</font>
<br>
<br><tt><font size=2>python setup.py --qtconf-prefix=Lib/site-packages/PyQt5/Qt</font></tt>
<br>
<br><font size=2 face="sans-serif">while leaving the other options unchanged.</font>
<br><font size=2 face="sans-serif">Built this way however, attempting to
import QtCore results in a seg-fault somewhere in QtCore.dll.</font>
<br><font size=2 face="sans-serif">Is there anything I'm missing here,
like quotes, escape-characters etc?</font>
<br>
<br><font size=2 face="sans-serif">Cheers </font>
<br><font size=2 face="sans-serif">Sebastian</font>