(binaries, source, seenExecutables)
| 2290 | } |
| 2291 | |
| 2292 | function 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 | |
| 2309 | function createPythonRuntimePlan({ condaProbes = [], pathProbes = [], minimumVersionRequest = minimumPythonRequest() }) { |
| 2310 | const validConda = condaProbes.find((probe) => pythonMeetsMinimum(probe)) || null; |
no test coverage detected