| 145 | } |
| 146 | |
| 147 | void QmitkPipInstaller::StartInstall() |
| 148 | { |
| 149 | if (this->IsRunning()) |
| 150 | { |
| 151 | MITK_WARN << "QmitkPipInstaller is already running."; |
| 152 | return; |
| 153 | } |
| 154 | |
| 155 | m_ResolvedPackages.clear(); |
| 156 | m_CurrentGroup = 0; |
| 157 | m_CurrentPackage = 0; |
| 158 | m_GroupStartIndex = 0; |
| 159 | m_CurrentPostInstallStep = 0; |
| 160 | m_AnyFailed = false; |
| 161 | |
| 162 | // Working copy of the install groups. A post-install step (PipInstallSpec:: |
| 163 | // postInstallSteps) must satisfy its own imports from packages installed by |
| 164 | // these groups; the installer no longer injects any synthetic group. |
| 165 | m_Groups = m_Spec.groups; |
| 166 | |
| 167 | // m_CreatedVirtualEnv is intentionally not reset here. If a prior attempt |
| 168 | // created the venv, a retry reuses it (BeginVirtualEnvPhase sees it exists |
| 169 | // and skips creation), so cleanup responsibility must survive the retry. |
| 170 | // The flag is cleared only in RemoveCreatedVirtualEnv after the venv has |
| 171 | // actually been removed. |
| 172 | |
| 173 | this->BeginVirtualEnvPhase(); |
| 174 | } |
| 175 | |
| 176 | void QmitkPipInstaller::AbandonInstall() |
| 177 | { |
no test coverage detected