PluginRefactoringRope.py

changeset 360
2b35968f3d02
parent 358
84c2fd80c949
child 362
792c2651fbd7
diff -r 5e0c63a80d6a -r 2b35968f3d02 PluginRefactoringRope.py
--- a/PluginRefactoringRope.py	Sun May 09 14:30:51 2021 +0200
+++ b/PluginRefactoringRope.py	Mon May 10 20:13:48 2021 +0200
@@ -22,7 +22,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "7.4.2"
+version = "8.0.0"
 className = "RefactoringRopePlugin"
 packageName = "RefactoringRope"
 internalPackages = "rope"
@@ -483,5 +483,18 @@
         """
         return self.__codeAssistServer
 
+
+def installDependencies(pipInstall):
+    """
+    Function to install dependencies of this plug-in.
+    
+    @param pipInstall function to be called with a list of package names.
+    @type function
+    """
+    try:
+        import rope         # __IGNORE_WARNING__
+    except ImportError:
+        pipInstall(["rope"])
+
 #
 # eflag: noqa = M801

eric ide

mercurial