Module implementing a class to manage Python virtual environments.
None |
VirtualenvManager | Class implementing an object to manage Python virtual environments. |
None |
Class implementing an object to manage Python virtual environments.
DefaultKey |
SystemKey |
None |
VirtualenvManager | Constructor |
__checkEnvironmentInterpretersExist | Private method to set all environments with non-existent interpreters to the disabled state. |
__cleanEnvironments | Private method to delete all non-existent local or eric-ide server environments. |
__createStandardVirtualEnv | Private method to create a standard (pyvenv or virtualenv) environment. |
__deleteStandardVirtualEnv | Private method to delete a given virtual environment from disk. |
__isEnvironmentDeleteable | Private method to check, if a virtual environment can be deleted from disk. |
__loadSettings | Private slot to load the virtual environments. |
__saveSettings | Private slot to save the virtual environments. |
addVirtualEnv | Public method to add a virtual environment. |
createVirtualEnv | Public slot to create a new virtual environment. |
deleteVirtualEnvs | Public method to delete virtual environments from the list and disk. |
environmentForInterpreter | Public method to get the environment a given interpreter belongs to. |
getDefaultEnvironment | Public method to get the default virtual environment. |
getEnvironmentEntries | Public method to get a list of the defined virtual environment entries. |
getEnvironmentTypeNames | Public method to get a list of names of registered virtual environment types. |
getEnvironmentTypesRegistry | Public method to get a reference to the virtual environment types registry object. |
getEricServerEnvironmentNames | Public method to get a list of defined eric-ide server environments. |
getVirtualEnvironmentsBaseDir | Public method to set the base directory for the virtual environments. |
getVirtualenvDirectory | Public method to get the directory of a virtual environment. |
getVirtualenvExecPath | Public method to get the search path prefix of a virtual environment. |
getVirtualenvInterpreter | Public method to get the interpreter for a virtual environment. |
getVirtualenvNames | Public method to get a list of defined virtual environments. |
isAvailableEnvironment | Public method to test, if a given environment is available. |
isEricServerEnvironment | Public method to test, if a given environment is an environment accessed through an eric-ide server. |
isGlobalEnvironment | Public method to test, if a given environment is a global one. |
isUnique | Public method to check, if the give logical name is unique. |
registerType | Public method to register a new virtual environment type. |
reloadSettings | Public slot to reload the virtual environments. |
removeVirtualEnvs | Public method to delete virtual environments from the list. |
renameVirtualEnv | Public method to substitute a virtual environment entry with a new name. |
searchUnregisteredInterpreters | Public method to search for unregistered Python interpreters. |
setVirtualEnv | Public method to change a virtual environment. |
setVirtualEnvInterpreter | Public method to change the interpreter for a virtual environment. |
setVirtualEnvironmentsBaseDir | Public method to set the base directory for the virtual environments. |
showVirtualenvManagerDialog | Public slot to show the virtual environment manager dialog. |
unregisterType | Public method to unregister the virtual environment type of the given name. |
upgradeVirtualEnv | Public slot to upgrade a virtual environment. |
None |
Constructor
Private method to set all environments with non-existent interpreters to the disabled state.
Private method to delete all non-existent local or eric-ide server environments.
Private method to create a standard (pyvenv or virtualenv) environment.
Private method to delete a given virtual environment from disk.
Private method to check, if a virtual environment can be deleted from disk.
Private slot to load the virtual environments.
Private slot to save the virtual environments.
Public method to add a virtual environment.
Public slot to create a new virtual environment.
Public method to delete virtual environments from the list and disk.
Public method to get the environment a given interpreter belongs to.
Public method to get the default virtual environment.
Default is an environment with the key '
Public method to get a list of the defined virtual environment entries.
Public method to get a list of names of registered virtual environment types.
Public method to get a reference to the virtual environment types registry object.
Public method to get a list of defined eric-ide server environments.
Public method to set the base directory for the virtual environments.
Public method to get the directory of a virtual environment.
Public method to get the search path prefix of a virtual environment.
Public method to get the interpreter for a virtual environment.
Public method to get a list of defined virtual environments.
Public method to test, if a given environment is available.
Public method to test, if a given environment is an environment accessed through an eric-ide server.
Public method to test, if a given environment is a global one.
Public method to check, if the give logical name is unique.
Public method to register a new virtual environment type.
Public slot to reload the virtual environments.
Public method to delete virtual environments from the list.
Public method to substitute a virtual environment entry with a new name.
Public method to search for unregistered Python interpreters.
Public method to change a virtual environment.
Public method to change the interpreter for a virtual environment.
Public method to set the base directory for the virtual environments.
Public slot to show the virtual environment manager dialog.
Public method to unregister the virtual environment type of the given name.
Public slot to upgrade a virtual environment.