eric7.UI.upgrader

Script to upgrade the packages eric depends on.

This process must be performed while eric is closed. The script will upgrade the requested packages and will restart eric.

Global Attributes

_ericPackages
_pyqtPackages

Classes

None

Functions

_determineVenvType Function to determine the type of the virtual environment.
_findPyvenv Function to find the pyvenv.cfg file based on the used Python interpreter.
doUpgrade Function to upgrade the given packages via pip.
main Main entry point into the upgrader.
startEric Function to start eric with the given arguments.


_determineVenvType

_determineVenvType()

Function to determine the type of the virtual environment.

Return:
type of the virtual environment ("uv", "standard" or "")
Return Type:
str
Up


_findPyvenv

_findPyvenv()

Function to find the pyvenv.cfg file based on the used Python interpreter.

Return:
path of the 'pyvenv.cfg' file or None, if it was not found or the Python interpreter does not belong to a virtual environment
Return Type:
str | None
Up


doUpgrade

doUpgrade(packages)

Function to upgrade the given packages via pip.

packages (list of str)
list of packages to be upgraded
Return:
flag indicating a successful installation
Return Type:
bool
Up


main

main()

Main entry point into the upgrader.

Up


startEric

startEric(args)

Function to start eric with the given arguments.

args (list of str)
list containing the start arguments
Up