Skip to content

Commit

Permalink
eliminate egg fragment as of pip 22.2; also correct behavior of edita…
Browse files Browse the repository at this point in the history
…ble vs not file installs.
  • Loading branch information
matteius committed Oct 21, 2024
1 parent c163030 commit 19b4278
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pipenv/utils/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,12 +1113,10 @@ def install_req_from_pipfile(name, pipfile):
req_str = f"{vcs_url}@{_pipfile.get('ref', fallback_ref)}{extras_str}"
if not req_str.startswith(f"{vcs}+"):
req_str = f"{vcs}+{req_str}"
if f"{vcs}+file://" in req_str or _pipfile.get("editable", False):
req_str = (
f"-e {req_str}#egg={name}{extras_str}{subdirectory.replace('#', '&')}"
)
if _pipfile.get("editable", False):
req_str = f"-e {name}{extras_str} @ {req_str}{subdirectory}"
else:
req_str = f"{name}{extras_str}@ {req_str}{subdirectory}"
req_str = f"{name}{extras_str} @ {req_str}{subdirectory}"
elif "path" in _pipfile:
req_str = file_path_from_pipfile(_pipfile["path"], _pipfile)
elif "file" in _pipfile:
Expand Down

0 comments on commit 19b4278

Please sign in to comment.