pub fn check_executables(
        executables: &[PathBuf],
        target: &Target,
        bridge: &BridgeModel,
    ) -> Result<Vec<PythonInterpreter>> {
        let mut available_versions = Vec::new();
        for executable in executables {
            if let Some(version) =
                PythonInterpreter::check_executable(executable, &target, &bridge).context(
                    format!("{} is not a valid python interpreter", executable.display()),
                )?
            {
                available_versions.push(version);
            } else {
                bail!(
                    "Python interpreter `{}` doesn't exist",
                    executable.display()
                );
            }
        }

        Ok(available_versions)
    }
/// Checks that given list of executables are all valid python intepreters,
/// determines the abiflags and versions of those interpreters and
/// returns them as [PythonInterpreter]
Checks that given list of executables are all valid python intepreters,
determines the abiflags and versions of those interpreters and
returns them as [PythonInterpreter]
Checks that given list of executables are all valid python intepreters determines the abiflags and versions of those interpreters and returns them as [ PythonInterpreter ]
pub fn check_executables(
        executables: &[PathBuf],
        target: &Target,
        bridge: &BridgeModel,
    ) -> Result<Vec<PythonInterpreter>> {
        let mut available_versions = Vec::new();
        for executable in executables {
            if let Some(version) =
                PythonInterpreter::check_executable(executable, &target, &bridge).context(
                    format!("{} is not a valid python interpreter", executable.display()),
                )?
            {
                available_versions.push(version);
            } else {
                bail!(
                    "Python interpreter `{}` doesn't exist",
                    executable.display()
                );
            }
        }
        Ok(available_versions)
    }
pub fn check_executables ( executables : & [ PathBuf ] , target : & Target , bridge : & BridgeModel , ) -> Result < Vec < PythonInterpreter > > { let mut available_versions = Vec :: new ( ) ; for executable in executables { if let Some ( version ) = PythonInterpreter :: check_executable ( executable , & target , & bridge ) . context ( format ! ( " " executable display ( ) ) , ) ? { available_versions . push ( version ) ; } else { bail ! ( " " executable display ( ) ) ; } } Ok ( available_versions ) }
Checks that given list of executables are all valid python intepreters,
determines the abiflags and versions of those interpreters and
returns them as [PythonInterpreter]
Checks that given list of executables are all valid python intepreters determines the abiflags and versions of those interpreters and returns them as [ PythonInterpreter ]
executables
&[PathBuf]
target
&Target
bridge
&BridgeModel
executables
&[PathBuf]
target
&Target
bridge
&BridgeModel