mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 18:44:27 +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):
|
if lm.install(name, version):
|
||||||
secho("The library '%s' has been successfully installed!" %
|
secho("The library '%s' has been successfully installed!" %
|
||||||
name, fg="green")
|
name, fg="green")
|
||||||
|
info = lm.get_info(name)
|
||||||
|
if "dependencies" in info:
|
||||||
|
secho("Installing dependencies:", fg="yellow")
|
||||||
|
lib_install(info['dependencies'])
|
||||||
|
|
||||||
except LibAlreadyInstalledError:
|
except LibAlreadyInstalledError:
|
||||||
secho("Already installed", fg="yellow")
|
secho("Already installed", fg="yellow")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user