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 a8e0af7
Showing 1 changed file with 3 additions and 1 deletion.
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 a8e0af7

Please sign in to comment.