diff options
author | Mukilan Thiyagarajan <mukilan@igalia.com> | 2024-12-10 09:13:50 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-10 03:43:50 +0000 |
commit | 2f64dde623ee4bfd57dc4dccf2384352ecc727a0 (patch) | |
tree | 7265b4ed90315ed86e9e2c510085153187e277fe /python/servo | |
parent | 3f69ef2303dd227c49917c1691e841dca41a4ad2 (diff) | |
download | servo-2f64dde623ee4bfd57dc4dccf2384352ecc727a0.tar.gz servo-2f64dde623ee4bfd57dc4dccf2384352ecc727a0.zip |
Revert "mach: switch to `uv` for managing python venv (#34504)" (#34548)
This reverts commit 4103421ba5dc401817128661d759bb18b0aec8f1.
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
Diffstat (limited to 'python/servo')
-rw-r--r-- | python/servo/build_commands.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index b21f89980c0..c48999f99f9 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -175,7 +175,7 @@ class MachCommands(CommandBase): return status @Command('clean', - description='Clean the target/ and Python virtual environment directories', + description='Clean the target/ and python/_venv[version]/ directories', category='build') @CommandArgument('--manifest-path', default=None, @@ -188,7 +188,8 @@ class MachCommands(CommandBase): def clean(self, manifest_path=None, params=[], verbose=False): self.ensure_bootstrapped() - virtualenv_path = path.join(self.get_top_dir(), '.venv') + virtualenv_fname = '_venv%d.%d' % (sys.version_info[0], sys.version_info[1]) + virtualenv_path = path.join(self.get_top_dir(), 'python', virtualenv_fname) if path.exists(virtualenv_path): print('Removing virtualenv directory: %s' % virtualenv_path) shutil.rmtree(virtualenv_path) |