Skip to content

Commit 6eab8e4

Browse files
committed
install report: add todo wrt environment markers
1 parent 7fdff17 commit 6eab8e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pip/_internal/models/installation_report.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,11 @@ def to_dict(self) -> Dict[str, Any]:
4444
)
4545
for ireq in self._install_requirements
4646
},
47+
# https://peps.python.org/pep-0508/#environment-markers
48+
# TODO: currently, the resolver uses the default environment to evaluate
49+
# environment markers, so that is what we report here. In the future, it
50+
# should also take into account options such as --python-version or
51+
# --platform, perhaps under the form of an environment_override field?
52+
# https://github.com/pypa/pip/issues/11198
4753
"environment": default_environment(),
4854
}

0 commit comments

Comments
 (0)