Details
Description
pyside6-deploy enforces the --one-file option on nuitka and this makes produced executable unpack it's files in a temp directory every run, preventing it from being able to work with external files in the project.
The only solution is to manually try to get the executable path and add it to every file path i implemented in my project, which is not ideal, I have hundreds of local file calls, and I have resources i cannot just serialize in a qrc file and use it, I need them separate unserialized, like other executable that I interface from python, they need to be in the state they are in.
Also using the --one-file option causes extra disk read/write every time the program is executed, which is not the most efficient solution to be set as default.
I tried to remove the --one-file option from the nuitka_helper.py in the deploy_utils and add the --standalone option but that didn't help, it just made the script produce nothing.
Attachments
For Gerrit Dashboard: PYSIDE-2622 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
565889,5 | Desktop Deployment: Enable Nuitka --standalone mode | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
567218,2 | Desktop Deployment: Enable Nuitka --standalone mode | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
568348,2 | Desktop deployment: fix --mode | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
568454,2 | Desktop deployment: fix --mode | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |