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

Function pythonSelectionLabel

bin/ds.js:2204–2213  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

2202}
2203
2204function pythonSelectionLabel(source) {
2205 if (source === 'conda') {
2206 const envName = String(process.env.CONDA_DEFAULT_ENV || '').trim();
2207 return envName ? `conda:${envName}` : 'conda';
2208 }
2209 if (source === 'uv-managed') {
2210 return 'uv-managed';
2211 }
2212 return 'path';
2213}
2214
2215function buildCondaPythonCandidates() {
2216 const prefix = String(process.env.CONDA_PREFIX || '').trim();

Callers 2

decoratePythonProbeFunction · 0.85
createPythonRuntimePlanFunction · 0.85

Calls 1

trimMethod · 0.45

Tested by

no test coverage detected