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

A set of packages that share the same pip options. More...

#include <mitkPipPackageInfo.h>

Collaboration diagram for mitk::PipInstallGroup:

Public Member Functions

 PipInstallGroup ()=default
 
 PipInstallGroup (std::initializer_list< std::string > requirements)
 

Public Attributes

std::vector< std::string > requirements
 
std::string indexUrl
 
std::vector< std::string > extraPipArgs
 

Detailed Description

A set of packages that share the same pip options.

Groups are resolved and installed in order. Use separate groups for packages that require different index URLs (e.g. PyTorch CUDA wheels vs. standard PyPI packages).

// Simple: just requirements (default PyPI)
PipInstallGroup group({ "torch>=2.8.0,<2.9.0", "torchvision>=0.23.0,<1.0.0" });
// With a custom index URL
group.indexUrl = "https://download.pytorch.org/whl/cu128";

Definition at line 59 of file mitkPipPackageInfo.h.

Constructor & Destructor Documentation

◆ PipInstallGroup() [1/2]

mitk::PipInstallGroup::PipInstallGroup ( )
default

◆ PipInstallGroup() [2/2]

mitk::PipInstallGroup::PipInstallGroup ( std::initializer_list< std::string >  requirements)

Member Data Documentation

◆ extraPipArgs

std::vector<std::string> mitk::PipInstallGroup::extraPipArgs

Additional pip arguments, e.g. {"--no-cache-dir"}.

Definition at line 67 of file mitkPipPackageInfo.h.

◆ indexUrl

std::string mitk::PipInstallGroup::indexUrl

Optional pip –index-url. Empty uses default PyPI.

Definition at line 66 of file mitkPipPackageInfo.h.

◆ requirements

std::vector<std::string> mitk::PipInstallGroup::requirements

Package specifiers, e.g. {"torch>=2.8.0,<2.9.0"}.

Definition at line 65 of file mitkPipPackageInfo.h.


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