Skip to content

Commit

Permalink
Apply AI fix for issue 6231
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Oct 19, 2024
1 parent 3be9344 commit 52cda2f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pipenv/utils/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,11 @@ def install_req_from_pipfile(name, pipfile):
version = ""
req_str = f"{name}{extras_str}{version}"

# Handle markers before constructing InstallRequirement
markers = PipenvMarkers.from_pipfile(name, _pipfile)
if markers:
req_str = f"{req_str};{markers}"

install_req, _ = expansive_install_req_from_line(
req_str,
comes_from=None,
Expand All @@ -1141,7 +1146,6 @@ def install_req_from_pipfile(name, pipfile):
constraint=False,
expand_env=True,
)
markers = PipenvMarkers.from_pipfile(name, _pipfile)
return install_req, markers, req_str


Expand Down

0 comments on commit 52cda2f

Please sign in to comment.