module installhelper.pip_helper

Inheritance diagram of pymyinstall.installhelper.pip_helper

Short summary

module pymyinstall.installhelper.pip_helper

Helpers for pip.

Classes

class

truncated documentation

Distribution

Common interface for old and recent pip packages.

Functions

function

truncated documentation

get_installed_distributions

Directs call to function get_installed_distributions from pip. Return a list of installed Distribution objects. …

Methods

method

truncated documentation

__getattr__

__init__

Documentation

Helpers for pip.

New in version 1.5.

source on GitHub

class pymyinstall.installhelper.pip_helper.Distribution(dist)

Bases: object

Common interface for old and recent pip packages.

New in version 1.5.

source on GitHub

__getattr__(attr)
__init__(dist)
pymyinstall.installhelper.pip_helper.get_installed_distributions(local_only=True, skip={'argparse', 'python', 'wsgiref'}, include_editables=True, editables_only=False, user_only=False, use_cmd=False)

Directs call to function get_installed_distributions from pip.

Return a list of installed Distribution objects.

Parameters
  • local_only – if True (default), only return installations local to the current virtualenv, if in a virtualenv.

  • skip – argument is an iterable of lower-case project names to ignore; defaults to pip.compat.stdlib_pkgs (if skip is None)

  • editables – if False, don’t report editables.

  • editables_only – if True , only report editables.

  • user_only – if True , only report installations in the user site directory.

  • use_cmd – if True, use a different process (updated package list)

Returns

list of installed Distribution objects.

New in version 1.5.

source on GitHub