diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-10-28 19:17:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-28 17:17:57 +0000 |
commit | 463c61f34de83d0e642eeaf792b92532ff5edb2c (patch) | |
tree | 99ac94579140c1bc29cc1f154de29e59414612b4 /python/servo/testing_commands.py | |
parent | 6dd359193f3f2b71c590000b3ea3d86a878ee8e4 (diff) | |
download | servo-463c61f34de83d0e642eeaf792b92532ff5edb2c.tar.gz servo-463c61f34de83d0e642eeaf792b92532ff5edb2c.zip |
Stop using distutils (#30638)
This is removed from Python 3.12 so we can no longer rely on it. All of
this functionality is either in `setuptools` or `shutil`.
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r-- | python/servo/testing_commands.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 196153b72d1..2dc432a51ee 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -37,7 +37,6 @@ import tidy from servo.command_base import BuildType, CommandBase, call, check_call from servo.util import delete -from distutils.dir_util import copy_tree SCRIPT_PATH = os.path.split(__file__)[0] PROJECT_TOPLEVEL_PATH = os.path.abspath(os.path.join(SCRIPT_PATH, "..", "..")) @@ -793,7 +792,7 @@ tests/wpt/mozilla/tests for Servo-only tests""" % reference_path) file.write(filedata) # copy delete(path.join(tdir, "webgpu")) - copy_tree(path.join(clone_dir, "out-wpt"), path.join(tdir, "webgpu")) + shutil.copytree(path.join(clone_dir, "out-wpt"), path.join(tdir, "webgpu")) # update commit commit = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=clone_dir).decode() with open(path.join(tdir, "checkout_commit.txt"), 'w') as file: |