home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 671076975

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/335#issuecomment-671076975 https://api.github.com/repos/simonw/datasette/issues/335 671076975 MDEyOklzc3VlQ29tbWVudDY3MTA3Njk3NQ== 9599 2020-08-09T17:08:34Z 2020-08-09T17:09:21Z OWNER

Quick prototype of datasette install: ```diff diff --git a/datasette/cli.py b/datasette/cli.py index 287195a..95b6eb7 100644 --- a/datasette/cli.py +++ b/datasette/cli.py @@ -231,6 +231,18 @@ def package( call(args)

+@cli.command() +@click.argument("packages", nargs=-1, required=True) +def install(packages): + "Install Python packages - e.g. Datasette plugins - into the same environment as Datasett" + import pip + + try: + pip.main(["install"] + list(packages)) + except SystemExit as e: + pass + + @cli.command() @click.argument("files", type=click.Path(exists=True), nargs=-1) @click.option( ```

``` $ datasette install Usage: datasette install [OPTIONS] PACKAGES... Try 'datasette install --help' for help.

Error: Missing argument 'PACKAGES...'. $ datasette install datasette-vega WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. Collecting datasette-vega Using cached datasette_vega-0.6.2-py3-none-any.whl (1.8 MB) ... ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
339505204  
Powered by Datasette · Queries took 0.721ms · About: github-to-sqlite