Updated Python package management tools (PY-9700, PY-8681)

This commit is contained in:
Andrey Vlasovskikh
2013-09-13 21:04:01 +04:00
parent 9466db5e20
commit a1e5aa1a74
8 changed files with 603 additions and 718 deletions
Binary file not shown.
+2 -2
View File
@@ -5,7 +5,7 @@ import os
ERROR_WRONG_USAGE = 1
ERROR_NO_PIP = 2
ERROR_NO_DISTRIBUTE = 3
ERROR_NO_SETUPTOOLS = 3
ERROR_EXCEPTION = 4
def exit(retcode):
@@ -42,7 +42,7 @@ def do_list():
try:
import pkg_resources
except ImportError:
error("Python package management tool 'setuptools' or 'distribute' not found", ERROR_NO_DISTRIBUTE)
error("Python package management tool 'setuptools' or 'distribute' not found", ERROR_NO_SETUPTOOLS)
for pkg in pkg_resources.working_set:
requires = ':'.join([str(x) for x in pkg.requires()])
sys.stdout.write('\t'.join([pkg.project_name, pkg.version, pkg.location, requires])+chr(10))
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff