eric7/PipInterface/Pip.py

branch
eric7-maintenance
changeset 9111
4ac66b6c33a4
parent 9016
6f079c524e99
child 9192
a763d57e23bc
--- a/eric7/PipInterface/Pip.py	Mon May 02 15:53:05 2022 +0200
+++ b/eric7/PipInterface/Pip.py	Wed Jun 01 13:48:49 2022 +0200
@@ -203,16 +203,9 @@
         @return interpreter path
         @rtype str
         """
-        if venvName == self.getProjectEnvironmentString():
-            venvName = (
-                ericApp().getObject("Project")
-                .getDebugProperty("VIRTUALENV")
-            )
-            if not venvName:
-                # fall back to interpreter used to run eric7
-                return Globals.getPythonExecutable()
-        
         interpreter = (
+            ericApp().getObject("Project").getProjectInterpreter()
+            if venvName == self.getProjectEnvironmentString() else
             ericApp().getObject("VirtualEnvManager")
             .getVirtualenvInterpreter(venvName)
         )
@@ -1011,6 +1004,9 @@
                     "--from",
                     "mixed",
                     "--with-system",
+                    "--with-authors",
+                    "--with-urls",
+                    "--with-description",
                 ]
                 if localPackages:
                     args.append("--local-only")

eric ide

mercurial