|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Full specification for a pip installation run. More...
#include <mitkPipPackageInfo.h>

Public Member Functions | |
| void | SaveToFile (const std::string &path) const |
| Save this PipInstallSpec to a JSON file. More... | |
Static Public Member Functions | |
| static PipInstallSpec | FromFile (const std::string &path) |
| Load a PipInstallSpec from a JSON file. More... | |
| static PipInstallSpec | FromResource (const std::string &resourcePath) |
| Load a PipInstallSpec from a Qt resource path. More... | |
Public Attributes | |
| std::string | name |
| std::string | venvName |
| std::vector< PipInstallGroup > | groups |
| bool | upgradePipFirst |
| std::vector< PostInstallStep > | postInstallSteps |
Full specification for a pip installation run.
Contains one or more install groups that are processed sequentially, plus global options like whether to upgrade pip first, plus an optional list of Python commands to run after pip install completes.
Definition at line 101 of file mitkPipPackageInfo.h.
|
static |
Load a PipInstallSpec from a JSON file.
| [in] | path | File system path to a .json file. |
| std::runtime_error | If the file cannot be read or parsed. |
|
static |
Load a PipInstallSpec from a Qt resource path.
| [in] | resourcePath | Qt resource path, e.g. ":/nnInteractive/install_spec.json". |
| std::runtime_error | If the resource cannot be read or parsed. |
| void mitk::PipInstallSpec::SaveToFile | ( | const std::string & | path | ) | const |
Save this PipInstallSpec to a JSON file.
| [in] | path | File system path to write. |
| std::runtime_error | If the file cannot be written. |
| std::vector<PipInstallGroup> mitk::PipInstallSpec::groups |
Install groups, processed in order.
Definition at line 105 of file mitkPipPackageInfo.h.
| std::string mitk::PipInstallSpec::name |
Human-readable display name, e.g. "nnInteractive".
Definition at line 103 of file mitkPipPackageInfo.h.
| std::vector<PostInstallStep> mitk::PipInstallSpec::postInstallSteps |
Python commands to run after pip install.
Definition at line 107 of file mitkPipPackageInfo.h.
| bool mitk::PipInstallSpec::upgradePipFirst |
Whether to upgrade pip before installing.
Definition at line 106 of file mitkPipPackageInfo.h.
| std::string mitk::PipInstallSpec::venvName |
If set, create and activate this venv before installing.
Definition at line 104 of file mitkPipPackageInfo.h.