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

Function collectPythonProbes

bin/ds.js:2292–2307  ·  view source on GitHub ↗
(binaries, source, seenExecutables)

Source from the content-addressed store, hash-verified

2290}
2291
2292function collectPythonProbes(binaries, source, seenExecutables) {
2293 const probes = [];
2294 for (const candidate of binaries) {
2295 const resolved = decoratePythonProbe(probePython(candidate), source);
2296 if (!resolved) {
2297 continue;
2298 }
2299 const executableKey = resolved.realExecutable || resolved.executable || resolved.binary;
2300 if (seenExecutables.has(executableKey)) {
2301 continue;
2302 }
2303 seenExecutables.add(executableKey);
2304 probes.push(resolved);
2305 }
2306 return probes;
2307}
2308
2309function createPythonRuntimePlan({ condaProbes = [], pathProbes = [], minimumVersionRequest = minimumPythonRequest() }) {
2310 const validConda = condaProbes.find((probe) => pythonMeetsMinimum(probe)) || null;

Callers 1

resolvePythonRuntimePlanFunction · 0.85

Calls 5

decoratePythonProbeFunction · 0.85
probePythonFunction · 0.85
hasMethod · 0.45
addMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected