Closed Bug 1866829 Opened 1 year ago Closed 11 months ago

Allow PGO build on Python 3.12

Categories

(Firefox Build System :: General, task)

task

Tracking

(firefox123 fixed)

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

It currently fails due to references to the now removed distutils package.

distutils.dir_util.copy_tree -> shutil.copytree
distutils.spawn.find_executable -> shutil.which

Also fix a warning about escape sequence in the process.

Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7d5bb9ef15c7 Replace obsolete distutils reference by portable alternatives r=ahochheiden

Backed out for causing mass failures on Android.

Flags: needinfo?(sguelton)
Attachment #9365639 - Attachment description: Bug 1866829 - Replace obsolete distutils reference by portable alternatives r=ahochheiden → Bug 1866829 - Replace obsolete distutils reference by portable alternatives r=ahochheiden!
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2de51d702554 Replace obsolete distutils reference by portable alternatives r=ahochheiden

Backed out for causing mass failures on Android

Backout link

Push with failures

Failure log

Hell, the dir_exists_ok keyword argument is only available since py 3.8, let me check if I can enforce this, as we're already moving to py3.8

Flags: needinfo?(sguelton)

(In reply to [:sergesanspaille] from comment #6)

Hell, the dir_exists_ok keyword argument is only available since py 3.8, let me check if I can enforce this, as we're already moving to py3.8

That hasn't landed yet. You'll have to wait for bug 1843209.

Depends on: 1836901

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:sergesanspaille, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(sguelton)
Flags: needinfo?(ahochheiden)

Bug 1843209 landed and hasn't been backed out in over a week, so I'd say you're good to go with dir_exists_ok :sergesanspaille.

Flags: needinfo?(ahochheiden)
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6af7194e2778 Replace obsolete distutils reference by portable alternatives r=ahochheiden
Flags: needinfo?(sguelton)
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
Depends on: 1843209
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: