({ rejectedProbe, source, minimumVersionRequest, installDir })
| 2360 | } |
| 2361 | |
| 2362 | function 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 | |
| 2381 | function resolvePythonRuntimePlan() { |
| 2382 | const seenExecutables = new Set(); |
no test coverage detected