{"html_url": "https://github.com/simonw/datasette/issues/93#issuecomment-344440658", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/93", "id": 344440658, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NDQ0MDY1OA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-14T23:58:07Z", "updated_at": "2017-11-14T23:58:07Z", "author_association": "OWNER", "body": "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!", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 273944952, "label": "Package as standalone binary"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/93#issuecomment-344440377", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/93", "id": 344440377, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NDQ0MDM3Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-14T23:56:35Z", "updated_at": "2017-11-14T23:56:35Z", "author_association": "OWNER", "body": "It worked!\r\n\r\n $ pyinstaller -F \\\r\n --add-data /usr/local/lib/python3.5/site-packages/datasette/templates:datasette/templates \\\r\n --add-data /usr/local/lib/python3.5/site-packages/datasette/static:datasette/static \\\r\n /usr/local/bin/datasette\r\n\r\n $ file dist/datasette \r\n dist/datasette: Mach-O 64-bit executable x86_64\r\n $ dist/datasette --help\r\n Usage: datasette [OPTIONS] COMMAND [ARGS]...\r\n\r\n Datasette!\r\n\r\n Options:\r\n --help Show this message and exit.\r\n\r\n Commands:\r\n serve* Serve up specified SQLite database files with...\r\n build\r\n package Package specified SQLite files into a new...\r\n publish Publish specified SQLite database files to...\r\n", "reactions": "{\"total_count\": 3, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 3, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 273944952, "label": "Package as standalone binary"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/93#issuecomment-344430299", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/93", "id": 344430299, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NDQzMDI5OQ==", "user": {"value": 67420, "label": "atomotic"}, "created_at": "2017-11-14T23:06:33Z", "updated_at": "2017-11-14T23:06:33Z", "author_association": "NONE", "body": "i will look better tomorrow, it's late i surely made some mistake\r\nhttps://asciinema.org/a/ZyAWbetrlriDadwWyVPUWB94H", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 273944952, "label": "Package as standalone binary"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/93#issuecomment-344426887", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/93", "id": 344426887, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NDQyNjg4Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-14T22:51:46Z", "updated_at": "2017-11-14T22:51:46Z", "author_association": "OWNER", "body": "That didn't quite work for me. It built me a `dist/datasette` executable but when I try to run it I get an error:\r\n\r\n $ pwd\r\n /Users/simonw/Dropbox/Development/datasette\r\n $ source venv/bin/activate\r\n $ pyinstaller -F --add-data datasette/templates:datasette/templates --add-data datasette/static:datasette/static /Users/simonw/Dropbox/Development/datasette/venv/bin/datasette\r\n $ dist/datasette --help\r\n Traceback (most recent call last):\r\n File \"datasette\", line 11, in \r\n File \"site-packages/pkg_resources/__init__.py\", line 572, in load_entry_point\r\n File \"site-packages/pkg_resources/__init__.py\", line 564, in get_distribution\r\n File \"site-packages/pkg_resources/__init__.py\", line 436, in get_provider\r\n File \"site-packages/pkg_resources/__init__.py\", line 984, in require\r\n File \"site-packages/pkg_resources/__init__.py\", line 870, in resolve\r\n pkg_resources.DistributionNotFound: The 'datasette' distribution was not found and is required by the application\r\n [99117] Failed to execute script datasette\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 273944952, "label": "Package as standalone binary"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/93#issuecomment-344424382", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/93", "id": 344424382, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NDQyNDM4Mg==", "user": {"value": 67420, "label": "atomotic"}, "created_at": "2017-11-14T22:42:16Z", "updated_at": "2017-11-14T22:42:16Z", "author_association": "NONE", "body": "tried quickly, this seems working:\r\n\r\n```\r\n~ pip3 install pyinstaller\r\n~ pyinstaller -F --add-data /usr/local/lib/python3.6/site-packages/datasette/templates:datasette/templates --add-data /usr/local/lib/python3.6/site-packages/datasette/static:datasette/static /usr/local/bin/datasette\r\n\r\n~ du -h dist/datasette\r\n6.8M\tdist/datasette\r\n~ file dist/datasette\r\ndist/datasette: Mach-O 64-bit executable x86_64\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 273944952, "label": "Package as standalone binary"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/93#issuecomment-344415756", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/93", "id": 344415756, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NDQxNTc1Ng==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-14T22:09:13Z", "updated_at": "2017-11-14T22:09:13Z", "author_association": "OWNER", "body": "Looks like we'd need to use this recipe: https://github.com/pyinstaller/pyinstaller/wiki/Recipe-Setuptools-Entry-Point", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 273944952, "label": "Package as standalone binary"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/93#issuecomment-344409906", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/93", "id": 344409906, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NDQwOTkwNg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-14T21:47:02Z", "updated_at": "2017-11-14T21:47:02Z", "author_association": "OWNER", "body": "Even without bundling in the database file itself, I'd love to have a standalone binary version of the core `datasette` CLI utility.\r\n\r\nI 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.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 273944952, "label": "Package as standalone binary"}, "performed_via_github_app": null}