Closed Bug 1858065 Opened 1 year ago Closed 1 year ago

Use packaging's Version instead of distutils' StrictVersion in mozbuild/nodeutil.py

Categories

(Firefox Build System :: Mach Core, task)

task

Tracking

(firefox-esr115 fixed, firefox120 fixed)

RESOLVED FIXED
120 Branch
Tracking Status
firefox-esr115 --- fixed
firefox120 --- fixed

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

As of Python 3.12, distutils is no longer available, and using packaging's Version is the official recommandation, see https://github.com/pypa/packaging/issues/520

distutils have been removed from Python 3.12.

Attachment #9357550 - Attachment description: Bug 1858065 - Use packaging's Version instead of distutils' StrictVersion r=saschanaz → Bug 1858065 - Use packaging's Version instead of distutils' StrictVersion r=saschanaz!
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/561899ab9176 Use packaging's Version instead of distutils' StrictVersion r=saschanaz

Backed out for breaking local mach browsertime tooling

backout link: https://hg.mozilla.org/integration/autoland/rev/b49831a88fee30aa339aec323a039628e4b9a9ef

Flags: needinfo?(sguelton)

Change spotted, new revision pushed, waiting for saschana's approval

Flags: needinfo?(sguelton) → needinfo?(krosylight)

I just added a comment there.

Flags: needinfo?(krosylight)
Attachment #9357550 - Attachment description: Bug 1858065 - Use packaging's Version instead of distutils' StrictVersion r=saschanaz! → Bug 1858065 - Replace distutils' StrictVersion r=saschanaz!
Severity: -- → S3
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ee3b3779af7f Replace distutils' StrictVersion r=saschanaz,perftest-reviewers,sparky
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch

distutils have been removed from Python 3.12, so replace it:

Sometimes using packaging's Version, sometimes providing our own in the
case of mozrelease/versions.py. Add more tests for the latter.

Original Revision: https://phabricator.services.mozilla.com/D190540

Attachment #9377307 - Flags: approval-mozilla-esr115?
Blocks: python3.12
Attachment #9377307 - Flags: approval-mozilla-esr115? → approval-mozilla-esr115+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: