Skip to content

sqlite-utils install command #483

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

Closed
simonw opened this issue Sep 6, 2022 · 2 comments
Closed

sqlite-utils install command #483

simonw opened this issue Sep 6, 2022 · 2 comments
Labels
cli-tool enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Sep 6, 2022

With the addition of --functions in:

In addition to the existing convert command, there are now very good reasons to want to install additional packages into the same virtual environment as sqlite-utils itself, to allow them to be used with those features.

This isn't easy if you installed the tool with pipx or brew install sqlite-utils.

Datasette solved this problem with the datasette install command:

sqlite-utils could benefit from the same idea.

@simonw simonw added enhancement New feature or request cli-tool labels Sep 6, 2022
@simonw
Copy link
Owner Author

simonw commented Sep 26, 2022

The implementation of this can be an almost exact copy of Datasette's, which was added in this commit: simonw/datasette@01fe5b7

Current code for that is here: https://github.com/simonw/datasette/blob/0.62/datasette/cli.py#L319-L340 - which is improved to use the from runpy import run_module function.

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

No branches or pull requests

1 participant