MCPcopy
hub / github.com/aws-samples/aws-cdk-examples / buildPython

Function buildPython

scripts/build-toolkit/src/build.ts:36–44  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

34}
35
36async function buildPython(dir: string): Promise<StepResult[]> {
37 const steps: StepResult[] = [];
38 // Create venv, install deps
39 const install = await runStep('install', 'bash', ['-c',
40 'python3 -m venv .venv && source .venv/bin/activate && pip install -q -r requirements.txt'
41 ], dir);
42 steps.push(install);
43 return steps; // Python has no compile/test step in the existing scripts
44}
45
46async function buildJava(dir: string): Promise<StepResult[]> {
47 const steps: StepResult[] = [];

Callers 1

buildProjectFunction · 0.85

Calls 1

runStepFunction · 0.90

Tested by

no test coverage detected