pyqtdeploy --resources does not split data files in app pkg dir

Patrick Stinson patrickkidd at gmail.com
Tue Nov 3 08:37:04 GMT 2020


Actually looks like a bad patch; it breaks built-in modules. Not sure why. Oh well.

> On Nov 2, 2020, at 11:08 PM, Patrick Stinson <patrickkidd at gmail.com> wrote:
> 
> It looks like the .pyo's and other resource files haven’t been generated/copied into the build folder before Builder._generate_resources(), so a file size can’t be determined for them using the relative path in the qrc. I couldn’t figure out how to find the original files in the app package, so I wrote this janky hack that only works on some resource files included in the app package and ignores the rest.
> 
> Maybe you have a tip that could clean this up, or can just clean it up.
> 
> <max-size.patch>
> 
>> On Nov 2, 2020, at 8:12 AM, Phil Thompson <phil at riverbankcomputing.com> wrote:
>> 
>> On 02/11/2020 17:05, Patrick Stinson wrote:
>>> Thanks. I’m going to see if I can patch it to distribute based on file
>>> size more equally. Any unforeseen side-effects of that?
>> 
>> No but it might be easier to just add a --max-size option which specifies that any file over that size goes into its own .qrc file.
>> 
>> Phil
> 



More information about the PyQt mailing list