(In reply to Mike Hommey [:glandium] from comment #1) > We should probably remove the use of distutils because of PEP 632 (short summary: distutils is deprecated since 3.10 and not part of 3.12) Based on the [migration advice](https://peps.python.org/pep-0632/#migration-advice) we should replace `distutils` with `setuptools` and `packaging`, but since here `packaging` is calling `distutils` isn't the solution to this particular error just updating our vendored version of `packaging`? We're on [`packaging 20.9`](https://searchfox.org/mozilla-central/source/third_party/python/requirements.in#19) and [`packaging` 21.0](https://pypi.org/project/packaging/21.0/) has this change: `Replace distutils usage with sysconfig (#396)`. And the newest version `packaging 21.3` is compatible with `python 3.6` (our minimum version). I do agree that we should remove `distutils` as per the migration advice in PEP 632, and we already have a bug tracking that [here](https://bugzilla.mozilla.org/show_bug.cgi?id=1743785).
Bug 1774569 Comment 2 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
(In reply to Mike Hommey [:glandium] from comment #1) > We should probably remove the use of distutils because of PEP 632 (short summary: distutils is deprecated since 3.10 and not part of 3.12) Based on the [migration advice](https://peps.python.org/pep-0632/#migration-advice) we should replace `distutils` with `setuptools` and `packaging`, but since here `packaging` is calling `distutils` isn't the solution to this particular error just updating our vendored version of `packaging`? We're on [`packaging 20.9`](https://searchfox.org/mozilla-central/source/third_party/python/requirements.in#19) and [`packaging` 21.0](https://pypi.org/project/packaging/21.0/) has this change: `Replace distutils usage with sysconfig (#396)`. And the newest version `packaging 21.3` is compatible with `python 3.6` (our minimum version). I do agree that we should remove `distutils` as per the migration advice in [PEP 632](https://peps.python.org/pep-0632/#migration-advice), and we already have a bug tracking that [here](https://bugzilla.mozilla.org/show_bug.cgi?id=1743785).