Skip to content
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

WIP: Make install editable option an option #2299

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
Add multiple to editable option
  • Loading branch information
mlouielu committed Jul 4, 2018
commit adebd4bc79a6efb65159aa0f56e8ceca67aa3283
1 change: 1 addition & 0 deletions pipenv/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ def cli(
"-e",
nargs=1,
default=False,
multiple=True,
help="Install a project in editable mode (i.e. setuptools "
"\"develop mode\") from a local project path.",
)
Expand Down
7 changes: 5 additions & 2 deletions pipenv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1842,8 +1842,11 @@ def do_install(
project.add_package_to_pipfile(req)
# Assign editable (-e) to following package_name.
if editable:
package_name = ' '.join(['-e', editable])
more_packages = list(more_packages)
editable = list(editable)
package_name = ' '.join(['-e', editable.pop(0)])
more_packages = ['-e %s' % (p) for p in editable]
if isinstance(more_packages, tuple):
more_packages = list(more_packages)

# capture indexes and extra indexes
line = [package_name] + more_packages
Expand Down