Mon, 21 May 2018 16:53:11 +0200
pip interface: added TODO markers to support --user
--- a/Plugins/UiExtensionPlugins/PipInterface/Pip.py Sun May 20 14:17:45 2018 +0200 +++ b/Plugins/UiExtensionPlugins/PipInterface/Pip.py Mon May 21 16:53:11 2018 +0200 @@ -30,6 +30,8 @@ import Globals +# TODO: 1) change all uses of pip to python3 -m pip +# TODO: 2) support --user for install, install --upgrade and list class Pip(QObject): """ Class implementing the pip GUI logic. @@ -876,6 +878,7 @@ return abort + # TODO: add parameter userSite=False; arg: --user def upgradePackages(self, packages, cmd=""): """ Public method to upgrade the given list of packages. @@ -914,6 +917,7 @@ if packages: self.upgradePackages(packages, cmd=command) + # TODO: add parameter userSite=False; arg: --user def installPackages(self, packages, cmd=""): """ Public method to install the given list of packages.
--- a/Plugins/UiExtensionPlugins/PipInterface/PipFileSelectionDialog.py Sun May 20 14:17:45 2018 +0200 +++ b/Plugins/UiExtensionPlugins/PipInterface/PipFileSelectionDialog.py Mon May 21 16:53:11 2018 +0200 @@ -22,6 +22,7 @@ import Utilities +# TODO: add checkbox to select an installation into 'user site' class PipFileSelectionDialog(QDialog, Ui_PipFileSelectionDialog): """ Class implementing a dialog to enter a file to be processed.
--- a/Plugins/UiExtensionPlugins/PipInterface/PipListDialog.py Sun May 20 14:17:45 2018 +0200 +++ b/Plugins/UiExtensionPlugins/PipInterface/PipListDialog.py Mon May 21 16:53:11 2018 +0200 @@ -26,6 +26,7 @@ import Preferences +# TODO: add support for --user (User Site only) class PipListDialog(QDialog, Ui_PipListDialog): """ Class implementing a dialog to list installed packages. @@ -454,6 +455,7 @@ """ self.on_packageList_itemSelectionChanged() + # TODO: add support for --user def __upgradePackages(self): """ Private slot to upgrade the selected packages. @@ -468,6 +470,7 @@ else: self.__executeUpgradePackages(packages) + # TODO: add support for --user def __upgradeAllPackages(self): """ Private slot to upgrade all listed packages. @@ -483,6 +486,7 @@ else: self.__executeUpgradePackages(packages) + # TODO: add support for --user def __upgradePip(self): """ Private slot to upgrade pip itself. @@ -494,7 +498,8 @@ res = self.__pip.upgradePip(pip=pip) if res: self.__refresh() - + + # TODO: add support for --user def __executeUpgradePackages(self, packages): """ Private method to execute the pip upgrade command.
--- a/Plugins/UiExtensionPlugins/PipInterface/PipPackagesInputDialog.py Sun May 20 14:17:45 2018 +0200 +++ b/Plugins/UiExtensionPlugins/PipInterface/PipPackagesInputDialog.py Mon May 21 16:53:11 2018 +0200 @@ -15,6 +15,7 @@ from .Ui_PipPackagesInputDialog import Ui_PipPackagesInputDialog +# TODO: add checkbox to select an installation into 'user site' class PipPackagesInputDialog(QDialog, Ui_PipPackagesInputDialog): """ Class implementing a dialog to enter package specifications.
--- a/Plugins/UiExtensionPlugins/PipInterface/PipSearchDialog.py Sun May 20 14:17:45 2018 +0200 +++ b/Plugins/UiExtensionPlugins/PipInterface/PipSearchDialog.py Mon May 21 16:53:11 2018 +0200 @@ -26,6 +26,7 @@ from . import DefaultIndexUrlXml +# TODO: add support for --user; additional button class PipSearchDialog(QDialog, Ui_PipSearchDialog): """ Class implementing a dialog to search PyPI. @@ -320,6 +321,7 @@ return score + # TODO: add support for --user def __install(self): """ Private slot to install the selected packages.