Bug 1766085 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

When building Firefox with `./mach build`, I now see some deprecation warnings about `distutils` in my output, like so:
```
 0:05.29 browser/app/firefox
 0:05.42 /scratch/work/builds/mozilla-central/mozilla/python/mozbuild/mozbuild/action/check_binary.py:13: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
 0:05.42   from distutils.version import StrictVersion as Version
 0:05.68     Blocking waiting for file lock on package cache
 0:07.21     Blocking waiting for file lock on package cache
 0:08.67     Blocking waiting for file lock on package cache
 0:08.69     Blocking waiting for file lock on package cache
 0:08.70     Blocking waiting for file lock on package cache
 0:08.70     Blocking waiting for file lock on package cache
 0:08.71     Blocking waiting for file lock on package cache
 0:08.74     Finished dev [unoptimized + debuginfo] target(s) in 4.13s
 0:08.74     Finished dev [unoptimized + debuginfo] target(s) in 5.39s
 0:08.84     Finished dev [unoptimized + debuginfo] target(s) in 5.49s
 0:08.98 security/manager/ssl/ipcclientcerts/force-cargo-library-build
 0:08.98 toolkit/library/build/libxul.so
 0:10.58     Finished dev [unoptimized + debuginfo] target(s) in 1.59s
 0:21.81 /scratch/work/builds/mozilla-central/mozilla/python/mozbuild/mozbuild/action/check_binary.py:13: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
 0:21.81   from distutils.version import StrictVersion as Version
```

It looks like we'll need to address this somehow before Python 3.12 is released, or else people with that version might run into trouble.

(I just updated to Ubuntu 22.04 which probably updated my python version as well; I'm guessing that's why I've just started to see this.  `python --version` tells me that I've now got Python 3.10.4
When building Firefox with `./mach build`, I now see some deprecation warnings about `distutils` in my output, like so (newlines added by me for readability):
```
 0:05.29 browser/app/firefox
 0:05.42 /scratch/work/builds/mozilla-central/mozilla/python/mozbuild/mozbuild/action/check_binary.py:13:
DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12.
Use setuptools or check PEP 632 for potential alternatives
 0:05.42   from distutils.version import StrictVersion as Version

[...]
 0:08.98 toolkit/library/build/libxul.so
 0:10.58     Finished dev [unoptimized + debuginfo] target(s) in 1.59s
 0:21.81 /scratch/work/builds/mozilla-central/mozilla/python/mozbuild/mozbuild/action/check_binary.py:13:
DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12.
Use setuptools or check PEP 632 for potential alternatives
 0:21.81   from distutils.version import StrictVersion as Version

```

It looks like we'll need to address this somehow before Python 3.12 is released, or else people with that version might run into trouble.

(I just updated to Ubuntu 22.04 which probably updated my python version as well; I'm guessing that's why I've just started to see this.  `python --version` tells me that I've now got Python 3.10.4

Back to Bug 1766085 Comment 0