Exemple #1
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(SkylineWindow);
     }
 }
Exemple #2
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;
     });
 }
Exemple #3
0
        public void Test_Install()
        {
            var pythonInstaller = new PythonInstaller();

            pythonInstaller.Install();
        }