[PyQt] Dev setup on windows

Patrick Stinson patrickkidd at gmail.com
Thu Feb 21 18:24:13 GMT 2019


Thanks for the tip on venv. I haven’t used it before.

I am getting the following error after “python configure.py && nmake” in the sip dir:

LINK : fatal error LNK1181: cannot open input file 'python36.lib’

What is the proper way to supply a lib dir? The file only exists in the PCBuild\win32 dir.



> On Feb 21, 2019, at 9:38 AM, Phil Thompson <phil at riverbankcomputing.com> wrote:
> 
> On 21 Feb 2019, at 5:19 pm, Patrick Stinson <patrickkidd at gmail.com> wrote:
>> 
>> How are others developing pyqt apps with sip extensions on windows? I have done this many ways the last 15 years, but it has always been a pain.
>> 
>> Developing a sip extension means you can’t use the qt/python binary installers because you don’t get the sip/python/qt headers and libs. But it is unclear how to install python/sip to a sysroot when building from source. But maybe I’m missing something from that route?
> 
> The Python binary installers include everything you need as far as Python is concerned. The Qt binary installers include everything you need as far as Qt is concerned.
> 
> Building sip (with the code generator and header file) is simply running configure.py and nmake. It is best to do this in a venv. This is my development environment.
> 
>> Or is pyqtdeploy-sysroot adequate for development as well as building a static release? I am still working through number of build issues on a vanilla install there so haven’t tried it yet.
>> 
>> Or maybe someone has a wiki outlining the dependencies and steps to get such a dev sysroot up?
> 
> Phil



More information about the PyQt mailing list