39 def installGoogleAPIPackages(): |
39 def installGoogleAPIPackages(): |
40 """ |
40 """ |
41 Module function to install the required packages to support Google mail. |
41 Module function to install the required packages to support Google mail. |
42 """ |
42 """ |
43 with contextlib.suppress(ImportError, KeyError): |
43 with contextlib.suppress(ImportError, KeyError): |
44 from eric7.EricWidgets.EricApplication import ericApp # noqa: I101 |
44 from eric7.EricWidgets.EricApplication import ericApp # noqa: I-101 |
45 from eric7.SystemUtilities import PythonUtilities # noqa: I101 |
45 from eric7.SystemUtilities import PythonUtilities # noqa: I-101 |
46 |
46 |
47 pip = ericApp().getObject("Pip") |
47 pip = ericApp().getObject("Pip") |
48 pip.installPackages( |
48 pip.installPackages( |
49 RequiredPackages, interpreter=PythonUtilities.getPythonExecutable() |
49 RequiredPackages, interpreter=PythonUtilities.getPythonExecutable() |
50 ) |
50 ) |
51 |
51 |
52 |
52 |
53 # |
53 # |
54 # eflag: noqa = U200 |
54 # eflag: noqa = U-200 |