MCPcopy Index your code
hub / github.com/actions/setup-python / installPipPackages

Function installPipPackages

src/setup-python.ts:26–37  ·  view source on GitHub ↗
(pipInstall: string)

Source from the content-addressed store, hash-verified

24}
25
26async function installPipPackages(pipInstall: string) {
27 core.info(`Installing pip packages: ${pipInstall}`);
28 try {
29 const installArgs = pipInstall.trim().split(/\s+/);
30 await exec('python', ['-m', 'pip', 'install', ...installArgs]);
31 core.info('Successfully installed pip packages');
32 } catch (error) {
33 core.setFailed(
34 `Failed to install pip packages from "${pipInstall}". Please verify that the package names, versions, or requirements files provided are correct and installable, that the specified packages and versions can be resolved from PyPI or the configured package index, and that your network connection is stable and allows access to the package index.`
35 );
36 }
37}
38
39async function cacheDependencies(cache: string, pythonVersion: string) {
40 const cacheDependencyPath =

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected