From 417780ff70cc057712f59acdab3ce784cf4c428f Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sun, 9 Oct 2016 00:23:33 +0300 Subject: [PATCH] Don't process dependency in lazy mode --- platformio/commands/run.py | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/platformio/commands/run.py b/platformio/commands/run.py index e9ef1be9..b19e30ab 100644 --- a/platformio/commands/run.py +++ b/platformio/commands/run.py @@ -238,17 +238,19 @@ class EnvironmentProcessor(object): telemetry.on_run_environment(self.options, build_targets) - # install dependent libraries - if "lib_install" in self.options: - _autoinstall_libdeps(self.cmd_ctx, [ - int(d.strip()) for d in self.options['lib_install'].split(",") - if d.strip() - ], self.verbose) - if "lib_deps" in self.options: - _autoinstall_libdeps(self.cmd_ctx, [ - d.strip() for d in self.options['lib_deps'].split(", ") - if d.strip() - ], self.verbose) + if "nobuild" not in build_targets: + # install dependent libraries + if "lib_install" in self.options: + _autoinstall_libdeps(self.cmd_ctx, [ + int(d.strip()) + for d in self.options['lib_install'].split(",") + if d.strip() + ], self.verbose) + if "lib_deps" in self.options: + _autoinstall_libdeps(self.cmd_ctx, [ + d.strip() for d in self.options['lib_deps'].split(", ") + if d.strip() + ], self.verbose) try: p = PlatformFactory.newPlatform(self.options['platform'])