private static void InstallProgram(ProgramPathContainer ppc, IEnumerable <string> packageUris, bool installed) { using (var dlg = new PythonInstaller(ppc, packageUris, installed, null)) { // Keep OK button from doing anything ever dlg.TestRunProcess = new TestRunProcess { ExitCode = 0 }; dlg.ShowDialog(SkylineWindow); } }
private static void SetPipInstallResults(PythonInstaller pythonInstaller, bool cancelDownload, bool downloadSuccess, bool connectSuccess, bool installSuccess) { RunUI(() => { pythonInstaller.TestPipDownloadClient = new TestAsynchronousDownloadClient { CancelDownload = cancelDownload, DownloadSuccess = downloadSuccess }; pythonInstaller.TestPipeSkylineProcessRunner = new TestSkylineProcessRunner { ConnectSuccess = connectSuccess, ExitCode = installSuccess ? 0 : 1 }; pythonInstaller.TestingPip = true; }); }
public void Test_Install() { var pythonInstaller = new PythonInstaller(); pythonInstaller.Install(); }