MCPcopy Create free account
hub / github.com/FastLED/FastLED / install_packages

Method install_packages

ci/autoresearch/build_driver.py:97–117  ·  view source on GitHub ↗
(
        self,
        build_dir: Path,
        environment: str | None,
        timeout: float = 1800,
    )

Source from the content-addressed store, hash-verified

95 return "platformio"
96
97 def install_packages(
98 self,
99 build_dir: Path,
100 environment: str | None,
101 timeout: float = 1800,
102 ) -> bool:
103 from ci.compiler.build_utils import get_utf8_env
104
105 cmd: list[str] = ["pio", "pkg", "install", "--project-dir", str(build_dir)]
106 if environment:
107 cmd.extend(["--environment", environment])
108
109 print("=" * 60)
110 print("PACKAGE INSTALLATION (PlatformIO)")
111 print("=" * 60)
112 result = subprocess.run(cmd, env=get_utf8_env())
113 if result.returncode != 0:
114 print("\n... Package installation failed")
115 return False
116 print("... Package installation completed\n")
117 return True
118
119 def deploy(
120 self,

Callers

nothing calls this directly

Calls 3

get_utf8_envFunction · 0.90
printFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected