Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::PostInstallStep Struct Reference

A Python command to run in the activated venv after pip install. More...

#include <mitkPipPackageInfo.h>

Collaboration diagram for mitk::PostInstallStep:

Public Attributes

std::string displayName
 
std::string pythonCode
 
bool optional
 

Detailed Description

A Python command to run in the activated venv after pip install.

Processed by PipInstaller as a terminal phase once all pip groups have been installed successfully. Each step runs as python -c "<pythonCode>" in the activated virtual environment, so any imports it needs must be satisfied by packages installed in the groups (directly or transitively). Raw stdout and stderr (including tqdm progress) is forwarded to the installer's output signal.

PostInstallStep step;
step.displayName = "Download model weights";
step.pythonCode =
"from nnInteractive.model_management import ensure_model_available, get_default_model_id\n"
"ensure_model_available(get_default_model_id())\n";
step.optional = true;
spec.postInstallSteps.push_back(std::move(step));

Definition at line 88 of file mitkPipPackageInfo.h.

Member Data Documentation

◆ displayName

std::string mitk::PostInstallStep::displayName

Label for the installer UI.

Definition at line 90 of file mitkPipPackageInfo.h.

◆ optional

bool mitk::PostInstallStep::optional

If true, a failure does not fail the overall installation.

Definition at line 92 of file mitkPipPackageInfo.h.

◆ pythonCode

std::string mitk::PostInstallStep::pythonCode

Python source executed via python -c.

Definition at line 91 of file mitkPipPackageInfo.h.


The documentation for this struct was generated from the following file: