Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundling #19

Merged
merged 6 commits into from Mar 8, 2021
Merged

bundling #19

merged 6 commits into from Mar 8, 2021

Conversation

aabounegm
Copy link
Collaborator

Adds PyInstaller as a dev-dependency for building a bundle to be distributed directly, along with script shortcuts and instructions. Additionally, I disabled the ugly TensorFlow warnings

The unix version needs testing. I only tested on Windows.
If the dist looks too bloated, or we don't want the user to search through the whole folder for the main executable, it is possible to bundle it in a single file, but that doesn't seem to be highly advisable.
I have also not yet tried any optimization flags.

This is useful for whoever prefers to keep the venv in the same folder
A placeholder is added until the real functionality is implemented
Apparently, pipenv doesn't escape them properly when parsing TOML
and it should have been '\\\\' for one '\', which is ridiculous.
@illright
Copy link
Collaborator

illright commented Mar 7, 2021

There's an issue on Linux, you can find its description here. Seems like it's relatively fresh, so the fix isn't merged into Pyinstaller yet. I'm not sure if Pipenv can handle installing random ZIP files, so I guess we may just have to tell Kruglov to wait (or forget about it, he has Windows anyway)

@aabounegm
Copy link
Collaborator Author

The issue seems to talk about Arch only. Any info if it is reproduceable on Debian/Ubuntu as well?
Also, should I add it to the CI to bundle when a release is created and add the bundles to the release?

@illright
Copy link
Collaborator

illright commented Mar 7, 2021

Please, our CI is more ignored than anything, don't even bother)

I don't know about Ubuntu (though I could pull up a USB stick and live boot, but) perhaps @IamMaxim could try it on his Ubuntu?

@aabounegm aabounegm merged commit ca25702 into main Mar 8, 2021
@aabounegm aabounegm deleted the bundling branch March 8, 2021 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants