Skip to content

"datasette install" and "datasette uninstall" commands #925

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 Aug 11, 2020 · 3 comments
Closed

"datasette install" and "datasette uninstall" commands #925

simonw opened this issue Aug 11, 2020 · 3 comments

Comments

@simonw
Copy link
Owner

simonw commented Aug 11, 2020

When installing Datasette plugins it's crucial that they end up in the same virtual environment as Datasette itself.

It's not necessarily obvious how to do this, especially if you install Datasette via pipx or homebrew.

Solution: datasette install datasette-vega and datasette uninstall datasette-vega commands that know how to install to the correct place - a very thin wrapper around pip install.

@simonw
Copy link
Owner Author

simonw commented Aug 11, 2020

Prototyped in this thread: #335 (comment)

@simonw simonw closed this as completed in 01fe5b7 Aug 11, 2020
simonw added a commit that referenced this issue Aug 11, 2020
@simonw
Copy link
Owner Author

simonw commented Aug 11, 2020

$ datasette install --help
Usage: datasette install [OPTIONS] PACKAGES...

  Install Python packages - e.g. Datasette plugins - into the same
  environment as Datasette

Options:
  --help  Show this message and exit.
$ datasette uninstall --help
Usage: datasette uninstall [OPTIONS] PACKAGES...

  Uninstall Python packages (e.g. plugins) from the Datasette environment

Options:
  -y, --yes  Don't ask for confirmation
  --help     Show this message and exit.

@simonw
Copy link
Owner Author

simonw commented Aug 11, 2020

This will simplify the instructions for installing plugins with Datasette install via homebrew, refs #923

simonw added a commit that referenced this issue Aug 12, 2020
simonw added a commit to simonw/homebrew-datasette that referenced this issue Aug 12, 2020
simonw added a commit to simonw/datasette-plugin that referenced this issue Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant