src/eric7/PipInterface/Pip.py

branch
eric7
changeset 9413
80c06d472826
parent 9323
6ae7193558ac
child 9442
906485dcd210
child 9462
e65379fdbd97
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
14 14
15 from PyQt6.QtCore import pyqtSlot, QObject, QProcess, QUrl, QCoreApplication, QThread 15 from PyQt6.QtCore import pyqtSlot, QObject, QProcess, QUrl, QCoreApplication, QThread
16 from PyQt6.QtWidgets import QDialog, QInputDialog, QLineEdit 16 from PyQt6.QtWidgets import QDialog, QInputDialog, QLineEdit
17 from PyQt6.QtNetwork import QNetworkAccessManager, QNetworkRequest, QNetworkReply 17 from PyQt6.QtNetwork import QNetworkAccessManager, QNetworkRequest, QNetworkReply
18 18
19 from EricWidgets import EricMessageBox 19 from eric7.EricWidgets import EricMessageBox
20 from EricWidgets.EricApplication import ericApp 20 from eric7.EricWidgets.EricApplication import ericApp
21 21
22 from EricNetwork.EricNetworkProxyFactory import proxyAuthenticationRequired 22 from eric7.EricNetwork.EricNetworkProxyFactory import proxyAuthenticationRequired
23 23
24 try: 24 try:
25 from EricNetwork.EricSslErrorHandler import EricSslErrorHandler 25 from eric7.EricNetwork.EricSslErrorHandler import EricSslErrorHandler
26 26
27 SSL_AVAILABLE = True 27 SSL_AVAILABLE = True
28 except ImportError: 28 except ImportError:
29 SSL_AVAILABLE = False 29 SSL_AVAILABLE = False
30 30
31 from .PipDialog import PipDialog 31 from .PipDialog import PipDialog
32 from .PipVulnerabilityChecker import PipVulnerabilityChecker 32 from .PipVulnerabilityChecker import PipVulnerabilityChecker
33 33
34 import Preferences 34 from eric7 import Globals, Preferences
35 import Globals
36 35
37 36
38 class Pip(QObject): 37 class Pip(QObject):
39 """ 38 """
40 Class implementing the pip GUI logic. 39 Class implementing the pip GUI logic.
506 @return flag indicating a successful execution 505 @return flag indicating a successful execution
507 @rtype bool 506 @rtype bool
508 """ 507 """
509 res = False 508 res = False
510 if packages and venvName: 509 if packages and venvName:
511 from UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog 510 from eric7.UI.DeleteFilesConfirmationDialog import (
511 DeleteFilesConfirmationDialog,
512 )
512 513
513 dlg = DeleteFilesConfirmationDialog( 514 dlg = DeleteFilesConfirmationDialog(
514 self.parent(), 515 self.parent(),
515 self.tr("Uninstall Packages"), 516 self.tr("Uninstall Packages"),
516 self.tr("Do you really want to uninstall these packages?"), 517 self.tr("Do you really want to uninstall these packages?"),
545 with open(requirements, "r") as f: 546 with open(requirements, "r") as f:
546 reqs = f.read().splitlines() 547 reqs = f.read().splitlines()
547 except OSError: 548 except OSError:
548 return 549 return
549 550
550 from UI.DeleteFilesConfirmationDialog import ( 551 from eric7.UI.DeleteFilesConfirmationDialog import (
551 DeleteFilesConfirmationDialog, 552 DeleteFilesConfirmationDialog,
552 ) 553 )
553 554
554 dlg = DeleteFilesConfirmationDialog( 555 dlg = DeleteFilesConfirmationDialog(
555 self.parent(), 556 self.parent(),

eric ide

mercurial