src/eric7/PipInterface/Pip.py

branch
eric7
changeset 9309
60ee3f038f52
parent 9278
36448ca469c2
child 9310
8ab45a4a6d96
equal deleted inserted replaced
9308:110d32f96013 9309:60ee3f038f52
989 dependencies = [] 989 dependencies = []
990 990
991 if envName: 991 if envName:
992 interpreter = self.getVirtualenvInterpreter(envName) 992 interpreter = self.getVirtualenvInterpreter(envName)
993 if interpreter: 993 if interpreter:
994 from . import pipdeptree
995
996 with open(pipdeptree.__file__, "r") as f:
997 content = f.read()
998 args = [ 994 args = [
999 "-c", 995 os.path.join(os.path.dirname(__file__), "pipdeptree.py"),
1000 content,
1001 "--json-tree", 996 "--json-tree",
1002 ] 997 ]
1003 if localPackages: 998 if localPackages:
1004 args.append("--local-only") 999 args.append("--local-only")
1005 if usersite: 1000 if usersite:
1046 licenses = [] 1041 licenses = []
1047 1042
1048 if envName: 1043 if envName:
1049 interpreter = self.getVirtualenvInterpreter(envName) 1044 interpreter = self.getVirtualenvInterpreter(envName)
1050 if interpreter: 1045 if interpreter:
1051 from . import piplicenses 1046
1052
1053 with open(piplicenses.__file__, "r") as f:
1054 content = f.read()
1055 args = [ 1047 args = [
1056 "-c", 1048 os.path.join(os.path.dirname(__file__), "piplicenses.py"),
1057 content,
1058 "--from", 1049 "--from",
1059 "mixed", 1050 "mixed",
1060 "--with-system", 1051 "--with-system",
1061 "--with-authors", 1052 "--with-authors",
1062 "--with-urls", 1053 "--with-urls",

eric ide

mercurial