-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Type: Bug 🐛This issue is a bug.This issue is a bug.
Description
pipenv install -e local/subdir1 -e local/subdir2 fails with an assertion traceback.
Version: 2018.05.18
Expected result
That pipenv install -e local/subdir1 -e local/subdir2 would add both directories to Pipfile as editable installs, similar to the effect of pip install -e local/subdir1 -e local/subdir2.
Actual result
The second -e gets interpreted as a package to try to install, which then fails:
[snip successfully setting up the first editable install]
Installing -e…
Traceback (most recent call last):
File "/home/ncoghlan/.local/bin/pipenv", line 11, in <module>
sys.exit(cli())
File "/home/ncoghlan/.local/lib/python3.5/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/ncoghlan/.local/lib/python3.5/site-packages/pipenv/vendor/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/ncoghlan/.local/lib/python3.5/site-packages/pipenv/vendor/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ncoghlan/.local/lib/python3.5/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ncoghlan/.local/lib/python3.5/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/ncoghlan/.local/lib/python3.5/site-packages/pipenv/cli.py", line 402, in install
selective_upgrade=selective_upgrade,
File "/home/ncoghlan/.local/lib/python3.5/site-packages/pipenv/core.py", line 1978, in do_install
extra_indexes=extra_indexes,
File "/home/ncoghlan/.local/lib/python3.5/site-packages/pipenv/core.py", line 1420, in pip_install
package_name.split('--hash')[0].split('--trusted-host')[0]
File "/home/ncoghlan/.local/lib/python3.5/site-packages/pipenv/utils.py", line 142, in get_requirement
req = [r for r in requirements.parse(dep)][0]
File "/home/ncoghlan/.local/lib/python3.5/site-packages/pipenv/utils.py", line 142, in <listcomp>
req = [r for r in requirements.parse(dep)][0]
File "/home/ncoghlan/.local/lib/python3.5/site-packages/pipenv/vendor/requirements/parser.py", line 50, in parse
yield Requirement.parse(line)
File "/home/ncoghlan/.local/lib/python3.5/site-packages/pipenv/vendor/requirements/requirement.py", line 218, in parse
re.sub(r'^(-e|--editable=?)\s*', '', line))
File "/home/ncoghlan/.local/lib/python3.5/site-packages/pipenv/vendor/requirements/requirement.py", line 123, in parse_editable
assert local_match is not None, 'This should match everything'
AssertionError: This should match everything
Steps to replicate
- Have two local directories that support being installed with
pip -e local/subdir - Attempt to install them both as editable in a single command, rather than as separate commands
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: Bug 🐛This issue is a bug.This issue is a bug.