mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Implement installing dependence libs
This commit is contained in:
@ -47,6 +47,11 @@ def lib_install(names, version=None):
|
||||
if lm.install(name, version):
|
||||
secho("The library '%s' has been successfully installed!" %
|
||||
name, fg="green")
|
||||
info = lm.get_info(name)
|
||||
if "dependencies" in info:
|
||||
secho("Installing dependencies:", fg="yellow")
|
||||
lib_install(info['dependencies'])
|
||||
|
||||
except LibAlreadyInstalledError:
|
||||
secho("Already installed", fg="yellow")
|
||||
|
||||
|
Reference in New Issue
Block a user