MCPcopy Create free account
hub / github.com/ResearAI/DeepScientist / printManagedPythonFallbackNotice

Function printManagedPythonFallbackNotice

bin/ds.js:2362–2379  ·  view source on GitHub ↗
({ rejectedProbe, source, minimumVersionRequest, installDir })

Source from the content-addressed store, hash-verified

2360}
2361
2362function printManagedPythonFallbackNotice({ rejectedProbe, source, minimumVersionRequest, installDir }) {
2363 if (!rejectedProbe) {
2364 return;
2365 }
2366 const envName = String(process.env.CONDA_DEFAULT_ENV || '').trim();
2367 const sourceLabel =
2368 source === 'conda'
2369 ? (envName ? `active conda environment \`${envName}\`` : 'active conda environment')
2370 : 'detected system Python';
2371 console.warn('');
2372 console.warn(
2373 `DeepScientist found ${sourceLabel} at ${pythonVersionText(rejectedProbe)}, which does not satisfy Python ${requiredPythonSpec}.`
2374 );
2375 console.warn(
2376 `DeepScientist will provision a uv-managed Python ${minimumVersionRequest}+ runtime under ${installDir}.`
2377 );
2378 console.warn('');
2379}
2380
2381function resolvePythonRuntimePlan() {
2382 const seenExecutables = new Set();

Callers 1

ensurePythonRuntimeFunction · 0.85

Calls 3

pythonVersionTextFunction · 0.85
trimMethod · 0.45
warnMethod · 0.45

Tested by

no test coverage detected