[PyQt] PyQt5.7 for Windows 64Bit - Python 2.7
Stéphane Bertrand
stef.kermit at gmail.com
Wed Dec 21 10:21:22 GMT 2016
Hi,
i build pyqt5 with qt 5.7 for python 2.7 without big problem (vs2015 )
* i use the online installer for qt5.7, i don't build qt5.
* use the cmdline from your visual or launch manually the good vcvars64.bat
* build sip following
http://pyqt.sourceforge.net/Docs/sip4/installation.html#configuring
>> C:\Python27\python.exe configure.py --platform win32-msvc2015
>> nmake
>> nmake install
>> nmake clean (if you want)
* build pyqt5 following
http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#building-and-installing-from-source
>> c:\Python27\python.exe configure.py --spec win32-msvc2015
add --sip c:\Python27\Scripts\sip.exe if your python directory not in
your path
>> nmake ( and make a coffee ^^ )
>> nmake install
>> nmake clean (if you want)
following Phil organisation for PyQt5 with Python3, if you want an
"autonomous" package ( without QT installation for deployement ) :
in the PyQt5 directory, i create a Qt directory with bin plugins, qml,
resources et translations directory from Qt install
and modify PyQt5 __init__.py :
import os
dirname = os.path.dirname(__file__)
env = os.environ
join = os.path.join
env['PATH'] = dirname+ '\\Qt\\bin;' +env['PATH']
env['QT_QPA_PLATFORM_PLUGIN_PATH'] = join(dirname,
'Qt','plugins','platforms')
env['QML_IMPORT_PATH'] = join(dirname, 'Qt','qml')
env['QML2_IMPORT_PATH'] = join(dirname, 'Qt','qml')
hope help you with my horrific english
Stéphane
2016-12-21 5:07 GMT+01:00 Bruno Araujo <bruno96araujo at gmail.com>:
> Please !!!!
> Well, good morrning, how can you teach me how to build pyqt5 with qt 5.7
> for windows? Using python 2.7.10. Thank you very much in advance
>
> --
> Bruno Araujo SA
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20161221/e23a9239/attachment.html>
More information about the PyQt
mailing list