forked from platformio/platformio-core
Implement unified "pio pkg install" CLI // Issue #3373
This commit is contained in:
1 parent
f445cb7895
commit
9e40eb992e
10 files changed
+584
-18
No files matched your search
@@ -65,15 +65,6 @@ class PlatformPackagesMixin(object):
|
||||
result.append(item)
|
||||
return result
|
||||
|
||||
def autoinstall_required_packages(self):
|
||||
for name, options in self.packages.items():
|
||||
if options.get("optional", False):
|
||||
continue
|
||||
if self.get_package(name):
|
||||
continue
|
||||
self.pm.install(self.get_package_spec(name))
|
||||
return True
|
||||
|
||||
def install_packages( # pylint: disable=too-many-arguments
|
||||
self,
|
||||
with_packages=None,
|
||||
|
||||
@@ -51,10 +51,7 @@ class PlatformRunMixin(object):
|
||||
assert isinstance(targets, list)
|
||||
|
||||
self.ensure_engine_compatible()
|
||||
|
||||
self.configure_project_packages(variables["pioenv"], targets)
|
||||
self.autoinstall_required_packages()
|
||||
|
||||
self._report_non_sensitive_data(variables["pioenv"], targets)
|
||||
|
||||
self.silent = silent
|
||||
|
||||
Reference in new issue
Block a user