[Bug]: distutils is deprecated #10719
Labels
package:basetools
priority:medium
Moderate impact. Should be prioritized over lower priority issues.
state:needs-maintainer-feedback
state:needs-owner
state:needs-triage
type:bug
Something isn't working
Is there an existing issue for this?
Bug Type
Code first?
What packages are impacted?
BaseTools
Which targets are impacted by this bug?
No response
Current Behavior
The
pythonx.x-distutils
package provided the standarddistutils
module.We are using an Ubuntu 22.04 container and found
distutils
is deprecated. In the deadsnakes PPA python3.12.7-1+jammy1 to python3.12.8-1+jammy1 update on 12/04/2024, the following diff was made:https://launchpadlibrarian.net/761821028/python3.12_3.12.7-1+jammy1_3.12.8-1+jammy1.diff.gz
In that,
python3.12-distutils
is no longer a built package per PEP-0632.The only code found to be using
distutils
in edk2 is:PyEfiCompressor
Brotli
Expected Behavior
The codebase needs to no longer depend on
distutils
.Migration advice is here: https://peps.python.org/pep-0632/#migration-advice
Steps To Reproduce
Search the edk2 codebase
*.py
files fordistutils
.Build Environment
Version Information
Urgency
Medium
Are you going to fix this?
Someone else needs to fix it
Do you need maintainer feedback?
Maintainer feedback requested
Anything else?
No response
The text was updated successfully, but these errors were encountered: