eric6.Plugins.UiExtensionPlugins.PipInterface.Pip

Package implementing the pip GUI logic.

Global Attributes

None

Classes

Pip Class implementing the pip GUI logic.

Functions

None


Pip

Class implementing the pip GUI logic.

Derived from

QObject

Class Attributes

None

Class Methods

None

Methods

Pip Constructor
__aboutToShowMenu Private slot to set the action enabled status.
__checkUpgradePyQt Private method to check, if an upgrade of PyQt packages is attempted.
__editConfiguration Private method to edit a configuration.
__editUserConfiguration Private slot to edit the user configuration.
__editVirtualenvConfiguration Private slot to edit the current virtualenv configuration.
__generateRequirements Private slot to generate the contents for a requirements file.
__getPython Private method to derive the path to the python executable given the path to the pip executable.
__getUserConfig Private method to get the name of the user configuration file.
__getVirtualenvConfig Private method to get the name of the virtualenv configuration file.
__handleTearOffMenu Private slot to handle a change of the pip executable.
__installLocalPackage Private slot to install a package available on local storage.
__installPackages Private slot to install packages to be given by the user.
__installPip Private slot to install pip.
__installRequirements Private slot to install packages as given in a requirements file.
__listOutdatedPackages Private slot to list all installed, up-to-date packages.
__listPackages Private slot to list all installed packages.
__listUptodatePackages Private slot to list all installed, up-to-date packages.
__pipConfigure Private slot to open the configuration page.
__repairPip Private method to repair the pip installation.
__searchPyPI Private slot to search the Python Package Index.
__selectPipExecutable Private method to select the pip executable to be used.
__uninstallPackages Private slot to uninstall packages to be given by the user.
__uninstallRequirements Private slot to uninstall packages as given in a requirements file.
__upgradePackages Private slot to upgrade packages to be given by the user.
getMenu Public method to get a reference to the requested menu.
getMenuNames Public method to get the names of all menus.
initActions Public method to define the Django actions.
initMenu Public slot to initialize the Django menu.
installPackages Public method to install the given list of packages.
runProcess Public method to execute the current pip with the given arguments.
uninstallPackages Public method to uninstall the given list of packages.
upgradePackages Public method to upgrade the given list of packages.
upgradePip Public method to upgrade pip itself.

Static Methods

None

Pip (Constructor)

Pip(plugin, parent=None)

Constructor

plugin
reference to the plugin object
parent
parent (QObject)

Pip.__aboutToShowMenu

__aboutToShowMenu()

Private slot to set the action enabled status.

Pip.__checkUpgradePyQt

__checkUpgradePyQt(packages)

Private method to check, if an upgrade of PyQt packages is attempted.

packages (list of str)
list of packages to upgrade
Returns:
flag indicating to abort the upgrade attempt
Return Type:
bool

Pip.__editConfiguration

__editConfiguration(virtualenv=False)

Private method to edit a configuration.

virtualenv
flag indicating to edit the current virtualenv configuration file (boolean)

Pip.__editUserConfiguration

__editUserConfiguration()

Private slot to edit the user configuration.

Pip.__editVirtualenvConfiguration

__editVirtualenvConfiguration()

Private slot to edit the current virtualenv configuration.

Pip.__generateRequirements

__generateRequirements()

Private slot to generate the contents for a requirements file.

Pip.__getPython

__getPython(cmd)

Private method to derive the path to the python executable given the path to the pip executable.

cmd (str)
path of the pip executable
Returns:
path of the python executable
Return Type:
str

Pip.__getUserConfig

__getUserConfig()

Private method to get the name of the user configuration file.

Returns:
path of the user configuration file (string)

Pip.__getVirtualenvConfig

__getVirtualenvConfig()

Private method to get the name of the virtualenv configuration file.

Returns:
path of the virtualenv configuration file (string)

Pip.__handleTearOffMenu

__handleTearOffMenu(pip)

Private slot to handle a change of the pip executable.

pip (str)
path of the pip executable

Pip.__installLocalPackage

__installLocalPackage()

Private slot to install a package available on local storage.

Pip.__installPackages

__installPackages()

Private slot to install packages to be given by the user.

Pip.__installPip

__installPip()

Private slot to install pip.

Pip.__installRequirements

__installRequirements()

Private slot to install packages as given in a requirements file.

Pip.__listOutdatedPackages

__listOutdatedPackages()

Private slot to list all installed, up-to-date packages.

Pip.__listPackages

__listPackages()

Private slot to list all installed packages.

Pip.__listUptodatePackages

__listUptodatePackages()

Private slot to list all installed, up-to-date packages.

Pip.__pipConfigure

__pipConfigure()

Private slot to open the configuration page.

Pip.__repairPip

__repairPip()

Private method to repair the pip installation.

Returns:
flag indicating a successful execution
Return Type:
bool

Pip.__searchPyPI

__searchPyPI()

Private slot to search the Python Package Index.

Pip.__selectPipExecutable

__selectPipExecutable()

Private method to select the pip executable to be used.

Pip.__uninstallPackages

__uninstallPackages()

Private slot to uninstall packages to be given by the user.

Pip.__uninstallRequirements

__uninstallRequirements()

Private slot to uninstall packages as given in a requirements file.

Pip.__upgradePackages

__upgradePackages()

Private slot to upgrade packages to be given by the user.

Pip.getMenu

getMenu(name)

Public method to get a reference to the requested menu.

name
name of the menu (string)
Returns:
reference to the menu (QMenu) or None, if no menu with the given name exists

Pip.getMenuNames

getMenuNames()

Public method to get the names of all menus.

Returns:
menu names (list of string)

Pip.initActions

initActions()

Public method to define the Django actions.

Pip.initMenu

initMenu()

Public slot to initialize the Django menu.

Returns:
the menu generated (QMenu)

Pip.installPackages

installPackages(packages, cmd="")

Public method to install the given list of packages.

packages
list of packages to install (list of string)
cmd
pip command to be used (string)

Pip.runProcess

runProcess(args, cmd="")

Public method to execute the current pip with the given arguments.

The selected pip executable is called with the given arguments and waited for its end.

args (list of str)
list of command line arguments
cmd (str)
pip executable to be used
Returns:
tuple containing a flag indicating success and the output of the process
Return Type:
tuple of (bool, str)

Pip.uninstallPackages

uninstallPackages(packages, cmd="")

Public method to uninstall the given list of packages.

packages
list of packages to uninstall (list of string)
cmd
pip command to be used (string)
Returns:
flag indicating a successful execution (boolean)

Pip.upgradePackages

upgradePackages(packages, cmd="")

Public method to upgrade the given list of packages.

packages
list of packages to upgrade (list of string)
cmd
pip command to be used (string)
Returns:
flag indicating a successful execution (boolean)

Pip.upgradePip

upgradePip(pip="")

Public method to upgrade pip itself.

pip (str)
pip command to be used
Returns:
flag indicating a successful execution
Return Type:
bool
Up