mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Updated Python package management tools (PY-9700, PY-8681)
This commit is contained in:
Binary file not shown.
@@ -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.
+576
-697
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user