Fix bug with --editable

See also: https://github.com/simonw/llm/issues/136
This commit is contained in:
Simon Willison 2023-07-25 22:20:49 -07:00
commit 5e9a02153d
2 changed files with 4 additions and 5 deletions

View file

@ -2800,7 +2800,6 @@ def _analyze(db, tables, columns, save, common_limit=10, no_most=False, no_least
@click.option(
"-e",
"--editable",
type=click.Path(readable=True, exists=True, dir_okay=True, file_okay=False),
help="Install a project in editable mode from this path",
)
def install(packages, upgrade, editable):
@ -2809,7 +2808,7 @@ def install(packages, upgrade, editable):
if upgrade:
args += ["--upgrade"]
if editable:
args += ["--editable", str(editable)]
args += ["--editable", editable]
args += list(packages)
sys.argv = args
run_module("pip", run_name="__main__")