[PyQt] Adding custom sip module to pyqtdeploy

Patrick Stinson patrickkidd at gmail.com
Tue Mar 21 06:30:22 GMT 2017


Scratch that. It’s important that all of the values that are somewhat like the module name in configure.py match the module name. makes sense.

All imported at working here.

-P

> On Mar 20, 2017, at 7:44 PM, Patrick Stinson <patrickkidd at gmail.com> wrote:
> 
> Thanks. I modified the qtr configure.py which generates and runs the following command, which exist with error code 0, but does not generate a .cpp file: 
> 
> /Users/patrick/dev/vendor/pyqt-sysroot-ios-64/bin/sip -D -t _cutil_5_8_1 -D -t WS_MACX -t Qt_5_8_0 -B Qt_6_0_0 -I /Users/patrick/dev/vendor/pyqt-sysroot-ios-64/bin/../../pyqt-sysroot-dev/share/sip/PyQt5 -P -o -c /Users/patrick/dev/pkdiagram/pkdiagram/_cutil/_cutil _cutil.sip
> 
> This of course spits out the following error from configure.py:
> 
> "Unable to create the C++ code.”
> 
> Other places to check? I don’t see a verbose option on the sip exe
> 
>> On Mar 20, 2017, at 4:44 PM, Phil Thompson <phil at riverbankcomputing.com> wrote:
>> 
>> On 20 Mar 2017, at 10:14 pm, Patrick Stinson <patrickkidd at gmail.com> wrote:
>>> 
>>> The sip docs still point to pyqtconfig which seems to have been removed in PyQt5. I checked out configure.py from QScintilla for a current example and got a little lost in the TargetConfig class.
>> 
>> You only need to modify the ModuleConfiguration class, the rest is generic. The configure.py from PyQtPurchasing is probably the simplest.
>> 
>>> How does one achieve the following with sip and PyQt5?
>>> 
>>> # Create the Makefile.  The QtGuiModuleMakefile class provided by the                                                              
>>> # pyqtconfig module takes care of all the extra preprocessor, compiler and                                                         
>>> # linker flags needed by the Qt library.                                                                                           
>>> makefile = pyqtconfig.QtGuiModuleMakefile(
>>>  configuration=config,
>>>  build_file=build_file,
>>>  installs=installs
>>> )
>> 
>> The new and old build systems are completely different - there is no equivalent.
>> 
>> Phil
> 



More information about the PyQt mailing list