meta_package_manager.managers.pip module

class meta_package_manager.managers.pip.Pip[source]

Bases: meta_package_manager.base.PackageManager

platforms = frozenset([u'macos', u'linux'])
get_version()[source]

Fetch version from pip --version output.

installed

The cachedproperty is used similar to property, except that the wrapped method is only called once. This is commonly used to implement lazy attributes.

After the property has been accessed, the value is stored on the instance itself, using the same name as the cachedproperty. This allows the cache to be cleared with delattr(), or through manipulating the object’s __dict__.

outdated

The cachedproperty is used similar to property, except that the wrapped method is only called once. This is commonly used to implement lazy attributes.

After the property has been accessed, the value is stored on the instance itself, using the same name as the cachedproperty. This allows the cache to be cleared with delattr(), or through manipulating the object’s __dict__.

upgrade_cli(package_id)[source]
upgrade_all_cli()[source]

Pip lacks support of a proper full upgrade command.

See: https://github.com/pypa/pip/issues/59

class meta_package_manager.managers.pip.Pip2[source]

Bases: meta_package_manager.managers.pip.Pip

cli_path = u'/usr/local/bin/pip2'
name = u"Python 2's Pip"
class meta_package_manager.managers.pip.Pip3[source]

Bases: meta_package_manager.managers.pip.Pip

cli_path = u'/usr/local/bin/pip3'
name = u"Python 3's Pip"