MCPcopy Create free account
hub / github.com/MITK/MITK / StartInstall

Method StartInstall

Modules/PythonInstaller/src/QmitkPipInstaller.cpp:147–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void 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
176void QmitkPipInstaller::AbandonInstall()
177{

Callers 1

OnInstallClickedMethod · 0.80

Calls 3

IsRunningMethod · 0.95
BeginVirtualEnvPhaseMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected