Skip to content

Commit fbb8f65

Browse files
committed
Add environment to the installation report
1 parent e371787 commit fbb8f65

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pip/_internal/models/installation_report.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from typing import Any, Dict, Sequence
22

3+
from pip._vendor.packaging.markers import default_environment
4+
35
from pip._internal.req.req_install import InstallRequirement
46

57

@@ -35,5 +37,6 @@ def to_dict(self) -> Dict[str, Any]:
3537
"install": {
3638
ireq.get_dist().metadata["Name"]: self._install_req_to_dict(ireq)
3739
for ireq in self._install_requirements
38-
}
40+
},
41+
"environment": default_environment(),
3942
}

0 commit comments

Comments
 (0)