-
-
Notifications
You must be signed in to change notification settings - Fork 701
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
Package as standalone binary #93
Comments
Even without bundling in the database file itself, I'd love to have a standalone binary version of the core I think Sanic may have some complex dependencies, but I've never tried pyinstaller so I don't know how easy or hard it would be to get this working. |
Looks like we'd need to use this recipe: https://github.com/pyinstaller/pyinstaller/wiki/Recipe-Setuptools-Entry-Point |
tried quickly, this seems working:
|
That didn't quite work for me. It built me a
|
i will look better tomorrow, it's late i surely made some mistake |
It worked!
|
It's a shame pyinstaller can't act as a cross-compiler - so I don't think I can get Travis CI to build packages. But it's fantastic that it's possible to turn the tool into a standalone executable! |
actually you can use travis to build for linux/macos and appveyor to build for windows. |
Relevant conversation on Twitter: https://twitter.com/simonw/status/1180866651962560512?s=21 |
Updated
|
I'm surprised it's only 8MB! |
That BASE= trick seems to work with |
Works on Linux/Ubuntu too, except I had to do
|
|
As an experiment, I put the macOS one in a zip file and attached it to the latest release:
It's available here: https://github.com/simonw/datasette/releases/tag/0.53 - download URL is https://github.com/simonw/datasette/releases/download/0.53/datasette-0.53-macos-binary.zip |
I tested it by running a
|
Next step is to automate this all! |
Closing this in favour of Datasette Desktop: https://datasette.io/desktop |
hint: more than the docker image a standalone and multiplatform binary (containing the app and the database) could be simpler to distribute.
i would like to investigate the possibility to package everything with pyinstaller adding the database as a data file
The text was updated successfully, but these errors were encountered: