microsoft / microsoft/component-detection
Plan for `distutils` removal in Python 3.12
Open
detector:pip
status:in-progress
type:refactor
- Dominant language
- C#
- Stars
- 553
- Forks
- 135
- Avg merge
- 20h 58m
- Merged PRs (30d)
- 6
Description
The `distutils` module in Python was deprecated in Python 3.10[^1] and is planned to be removed entirely in Python 3.12. Our Python detector is currently based around `distutils`[^2]. Python 3.12 is due to be released in October 2023[^3].
There are some suggested migration paths in the release notes for Python 3.10[^1].
[^1]: https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated
[^2]: https://github.com/microsoft/component-detection/blob/2d5a418320e23f019f67b59e191ac72b5f8d9666/docs/detectors/pip.md#detection-strategy
[^3]: https://peps.python.org/pep-0602/
AB#2095297
Contributor guide
Assessment
This issue has not been assessed yet.