Skip to content

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

Closed

Description

@simonw

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.

Activity

  1. simonw commented on Aug 11, 2020

    @simonw
    OwnerAuthor

    Prototyped in this thread: #335 (comment)

  2. added a commit that references this issue on Aug 11, 2020
  3. simonw commented on Aug 11, 2020

    @simonw
    OwnerAuthor
    $ 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.
    
  4. simonw commented on Aug 11, 2020

    @simonw
    OwnerAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions