Features for testing the presence of package systems

class sage.features.pkg_systems.PackageSystem(name, spkg=None, url=None, description=None)

Bases: sage.features.Feature

A Feature describing a system package manager.

EXAMPLES:

sage: from sage.features.pkg_systems import PackageSystem
sage: PackageSystem('conda')
Feature('conda')
spkg_installation_hint(spkgs, prompt, feature)

Return a string that explains how to install feature.

EXAMPLES:

sage: from sage.features.pkg_systems import PackageSystem
sage: homebrew = PackageSystem('homebrew')
sage: homebrew.spkg_installation_hint('openblas')  # optional - SAGE_ROOT
'To install openblas using the homebrew package manager, you can try to run:\n!brew install openblas'
class sage.features.pkg_systems.PipPackageSystem(name, spkg=None, url=None, description=None)

Bases: sage.features.pkg_systems.PackageSystem

A Feature describing the Pip package manager.

EXAMPLES:

sage: from sage.features.pkg_systems import PipPackageSystem
sage: PipPackageSystem()
Feature('pip')
class sage.features.pkg_systems.SagePackageSystem(name, spkg=None, url=None, description=None)

Bases: sage.features.pkg_systems.PackageSystem

A Feature describing the package manager of the SageMath distribution.

EXAMPLES:

sage: from sage.features.pkg_systems import SagePackageSystem
sage: SagePackageSystem()
Feature('sage_spkg')