src/eric7/PipInterface/Pip.py

branch
eric7
changeset 9850
20c49b517679
parent 9786
f94b530722af
child 9851
ec12090e9cd9
--- a/src/eric7/PipInterface/Pip.py	Sun Mar 05 12:26:12 2023 +0100
+++ b/src/eric7/PipInterface/Pip.py	Sun Mar 05 17:07:49 2023 +0100
@@ -1047,18 +1047,12 @@
     ## License handling methods below
     #######################################################################
 
-    def getLicenses(self, envName, localPackages=True, usersite=False, summary=False):
+    def getLicenses(self, envName, summary=False):
         """
         Public method to get the licenses per package for a given environment.
 
         @param envName name of the environment to get the licenses for
         @type str
-        @param localPackages flag indicating to get the licenses for local
-            packages only
-        @type bool
-        @param usersite flag indicating to get the licenses for packages
-            installed in user-site directory only
-        @type bool
         @param summary flag indicating to get a summary listing (defaults to
             False)
         @type bool (optional)
@@ -1080,10 +1074,6 @@
                     "--with-urls",
                     "--with-description",
                 ]
-                if localPackages:
-                    args.append("--local-only")
-                if usersite:
-                    args.append("--user-only")
                 if summary:
                     args.append("--summary-by-license")
 
@@ -1100,23 +1090,15 @@
 
         return licenses
 
-    def getLicensesSummary(self, envName, localPackages=True, usersite=False):
+    def getLicensesSummary(self, envName):
         """
         Public method to get a summary of licenses found in a given
         environment.
 
         @param envName name of the environment to get the licenses summary for
         @type str
-        @param localPackages flag indicating to get the licenses summary for
-            local packages only
-        @type bool
-        @param usersite flag indicating to get the licenses summary for
-            packages installed in user-site directory only
-        @type bool
         @return list of dictionaries containing the license and the count of
             packages
         @rtype dict
         """
-        return self.getLicenses(
-            envName, localPackages=localPackages, usersite=usersite, summary=True
-        )
+        return self.getLicenses(envName, summary=True)

eric ide

mercurial