Ejemplo n.º 1
0
 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;
         });
 }
Ejemplo n.º 2
0
 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();
     }
 }