Skip to content

Commit

Permalink
fix parsing of editable packages, fixes pypa#2714
Browse files Browse the repository at this point in the history
Fix the parsing of an editable package. When the package name is '-e', it will
be concatenated with the next package in the list (which is the VCS URL).
  • Loading branch information
slhck committed Aug 13, 2018
1 parent 541b87a commit ca6a943
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/2714.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix parsing of editable packages during installation.
4 changes: 3 additions & 1 deletion pipenv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,9 @@ def do_install(
line, index = split_argument(line, short="i", long_="index", num=1)
line, extra_indexes = split_argument(line, long_="extra-index-url")
package_names = line.split()
package_name = package_names[0]
package_name = package_names.pop(0)
if package_name == '-e':
package_name = " ".join([package_name, package_names.pop(0)])
if len(package_names) > 1:
more_packages = package_names[1:]
else:
Expand Down

0 comments on commit ca6a943

Please sign in to comment.