Closed Bug 1898817 Opened 6 months ago Closed 5 months ago

Migrate various `distutils` usages in first-party python modules

Categories

(Firefox Build System :: General, task, P3)

task

Tracking

(firefox129 fixed)

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: ahochheiden, Assigned: ahochheiden)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

Not really sure what product to file this under, since there's several usages in several different modules, and I'd rather not raise a new bug for each one.

We can't use shutil.copy_tree here, since we need the update=True
functionality implemented by the distutils variant, but not by the
shutil one. This looks like the only place in the repo we use this
functionality, so it seems fine to implement an equivalent ourselves
here directly.

Pushed by ahochheiden@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/eb50a220de69 Replace `distutils.spawn.find_executable` with `shutil.which` within `mozlint` r=ahal https://hg.mozilla.org/integration/autoland/rev/c68493490b5c Replace `distutils.spawn.find_executable` with `shutil.which` within `mozperftest` r=mozperftest-reviewers,sparky https://hg.mozilla.org/integration/autoland/rev/2fc073aab920 Add custom `copy_tree_update` to replace `distutils.dir_util.copy_tree` r=mozperftest-reviewers,sparky https://hg.mozilla.org/integration/autoland/rev/91cfbbe6cacd Replace `distutils.sysconfig` with `sysconfig.get_paths` to get the site pacakages directory in `mozharness` r=ahal https://hg.mozilla.org/integration/autoland/rev/4b2b91958615 Replace `distutils.util.strtobool` with `mach.util.strtobool` in `raptor` r=perftest-reviewers,afinder
Regressions: 1902075

Thanks!

Flags: needinfo?(ahochheiden)
Pushed by ahochheiden@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a1fb12118815 Replace `distutils.spawn.find_executable` with `shutil.which` within `mozlint` r=ahal https://hg.mozilla.org/integration/autoland/rev/9e98a131b967 Replace `distutils.spawn.find_executable` with `shutil.which` within `mozperftest` r=mozperftest-reviewers,sparky https://hg.mozilla.org/integration/autoland/rev/75d8387e1265 Add custom `copy_tree_update` to replace `distutils.dir_util.copy_tree` r=mozperftest-reviewers,sparky https://hg.mozilla.org/integration/autoland/rev/39c3934ec741 Replace `distutils.sysconfig` with `sysconfig.get_paths` to get the site pacakages directory in `mozharness` r=ahal https://hg.mozilla.org/integration/autoland/rev/f74c3b8ceafd Replace `distutils.util.strtobool` with `mach.util.strtobool` in `raptor` r=perftest-reviewers,afinder
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: