-
Notifications
You must be signed in to change notification settings - Fork 283
Add option to bundle app with pyinstaller #661
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
Conversation
Codecov ReportBase: 95.19% // Head: 95.19% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #661 +/- ##
=======================================
Coverage 95.19% 95.19%
=======================================
Files 24 24
Lines 3496 3496
Branches 661 661
=======================================
Hits 3328 3328
Misses 94 94
Partials 74 74
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
I have no idea how PyInstaller works. Does this option have to be part of the program being packaged, or could it be a separate script, or could we just tell users interested in this to clone the repository and run some Nox command? I think it's great to include (low-maintenance) entry-points that can be used for non-PyPI distribution, but the proposed design strikes me more like a hack, not like something I'd feel comfortable shipping. |
Pyinstaller needs a script which is parsed to get the imports. For the modules the pyc files are created and packed together with the python interpreter. A bootstrap code unpacks all, setsup the environment and executes it. |
Ok, from that description it really sounds like this should be a separate script, not part of the gcovr program. Doing this via Nox sounds fine. Yes, adding it to the docs would be good for discoverability. Maybe a cookbook entry, and a link to that entry from the installation guide? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I like this. Lots of smaller questions though.
Co-authored-by: Lukas Atkinson <opensource@LukasAtkinson.de>
898a6d9
to
0eb8649
Compare
0eb8649
to
54b3355
Compare
a021ef6
to
8811087
Compare
This PR adds an additional option to bundle the current version installed with pip into a standalone executable with pyinstaller:
The main script used to generate the application is part of gcovr installation. In the bundled application the option and option group is removed.
The pipeline test run also a test for the bundled application which checks if the help is printed.
Closes #486