diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-11-27 19:10:09 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-11-28 09:44:20 +0100 |
commit | dfb35db6d3971e041e3f56fcc5ce665889058cad (patch) | |
tree | eb161343dfbe124bb2cb549aa49a98525fd6f943 /python/servo/devenv_commands.py | |
parent | 7d69f53794c9f823d524d0d4382c04c4a57bea65 (diff) | |
download | servo-dfb35db6d3971e041e3f56fcc5ce665889058cad.tar.gz servo-dfb35db6d3971e041e3f56fcc5ce665889058cad.zip |
Move to Cargo workspaces
Diffstat (limited to 'python/servo/devenv_commands.py')
-rw-r--r-- | python/servo/devenv_commands.py | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py index 665d8f3c798..e2acab9b979 100644 --- a/python/servo/devenv_commands.py +++ b/python/servo/devenv_commands.py @@ -21,12 +21,6 @@ from mach.decorators import ( from servo.command_base import CommandBase, cd, call -CARGO_PATHS = [ - path.join('ports', 'cef'), - path.join('ports', 'geckolib'), - path.join('ports', 'servo'), -] - @CommandProvider class MachCommands(CommandBase): @@ -89,11 +83,9 @@ class MachCommands(CommandBase): self.ensure_bootstrapped() - for cargo_path in CARGO_PATHS: - with cd(cargo_path): - print(cargo_path) - call(["cargo", "update"] + params, - env=self.build_env()) + with cd(self.context.topdir): + call(["cargo", "update"] + params, + env=self.build_env()) @Command('clippy', description='Run Clippy', @@ -165,10 +157,8 @@ class MachCommands(CommandBase): self.ensure_bootstrapped() # Fetch Cargo dependencies - for cargo_path in CARGO_PATHS: - with cd(cargo_path): - print(cargo_path) - call(["cargo", "fetch"], env=self.build_env()) + with cd(self.context.topdir): + call(["cargo", "fetch"], env=self.build_env()) @Command('wptrunner-upgrade', description='upgrade wptrunner.', |