pyqtdeploy --resources does not split data files in app pkg dir
Patrick Stinson
patrickkidd at gmail.com
Tue Nov 3 08:08:43 GMT 2020
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: max-size.patch
Type: application/octet-stream
Size: 4263 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20201102/91afdffd/attachment-0001.obj>
-------------- next part --------------
> 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