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

consider switching from pyinstaller to cx_freeze or nuitka #157

Open
eug3nix opened this issue Jun 16, 2023 · 1 comment
Open

consider switching from pyinstaller to cx_freeze or nuitka #157

eug3nix opened this issue Jun 16, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@eug3nix
Copy link
Collaborator

eug3nix commented Jun 16, 2023

to reduce the app startup time and app startup issues on Mac
https://cx-freeze.readthedocs.io/en/latest/keywords.html
https://github.com/Nuitka/Nuitka

@eug3nix eug3nix added the enhancement New feature or request label Jun 16, 2023
@eug3nix eug3nix self-assigned this Jun 16, 2023
@eug3nix eug3nix changed the title consider switching from pyinstaller to cx_python or nuitka consider switching from pyinstaller to cx_freeze or nuitka Jul 3, 2023
@eug3nix
Copy link
Collaborator Author

eug3nix commented Jul 3, 2023

I have tried building app back-end with Nuitka and managed to make it work with like so:
nuitka3 --standalone --include-module=app.middleware --include-package=pgmanage --include-package=django --output-dir=dist ./pgmanage-server.py
The some data files should be added to the project dist directory in order to make it work.
The app starts up significantly faster but my main concern is the size of the build, which is almost 200% of what we get with pyinstaller. Perhaps the size could be optimized by selectively including only necessary python modules instead of using whole packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant