Built datashuttle executable with PyInstaller#535
Conversation
|
Hey @sumana-2705, thanks for this! This is very cool. Could you also push the pyinstaller spec file and actually, delete the executable. Apologies I did not say, I will add the |
|
Hey @sumana-2705 thanks for this! I saw the same error you had, it is annoying because if you double-click the executable the console is deleted as soon as it finishes. To get around this, you can open a terminal directly, cd to the dir where the exe is and run with There were two changes to make it work, one was to add the lines; sometimes pyinstaller cannot find all of the requirements from the imports at the top of the file, and these need to be specified directly. This worked, but then the and Honestly, ChatGPT if very useful for working with pyinstaller in case you find it useful, I've used it a lot before and its a real pain to dig deep into the documentation to find these weird errors! There are a couple of other things we can do next:
and add This should then copy your rclone from conda (which we can use to manage the install cross platform) to the install dir.
Let me know if you'd like to play around with these and see if this works on your machine |
2a9dc54 to
7caa5a2
Compare
eae6045 to
f188a01
Compare
9ae5ded
into
neuroinformatics-unit:cross-platform-packaging
Description
What is this PR
Why is this PR needed?
This PR demonstrates the process of building the datashuttle package as a standalone executable using PyInstaller. It allows maintainers to review and verify the feasibility of distributing datashuttle as a packaged binary, simplifying installation and usage for end users.
What does this PR do?
tui_launcher.pyas the entry point.datashuttle.exe) for demonstration purposes only.References
Closes #517
Is this a breaking change?
No. This PR only adds a demonstration build artifact and does not modify existing source code or APIs.
Does this PR require an update to the documentation?
No immediate documentation updates are required. However, if binary distribution is adopted in the future, documentation changes should describe installation and usage of the executable.