Closed Bug 1752927 Opened 3 years ago Closed 3 years ago

distutils DeprecationWarning on every Mach invocation for modern Python (SetuptoolsDeprecationWarning: setup.py install is deprecated)

Categories

(Firefox Build System :: Mach Core, defect)

defect

Tracking

(firefox98 fixed)

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: mhentges, Assigned: mhentges)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This is also showing up as a SetuptoolsDeprecationWarning for modern setuptools versions.

Let's address the common Mach code path to avoid these warnings.

Assignee: nobody → mhentges
Status: NEW → ASSIGNED

Python 3.10 prints a warning when it sees distutils used, so let's
avoid using distutils in the "common Mach code" that runs on every
Mach call.

Note that this change will also fix the SetuptoolsDeprecationWarning
that shipped on setuptools>=58.3.0, since our usage of distutils was
calling a setup.py install under the hood.

Summary: distutils DeprecationWarning on every Mach invocation for modern Python → distutils DeprecationWarning on every Mach invocation for modern Python (SetuptoolsDeprecationWarning: setup.py install is deprecated)
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: