Removed unused PyPackageManager.findPackage()

This commit is contained in:
Andrey Vlasovskikh
2014-09-08 18:51:54 +04:00
parent 72458a7334
commit caf8358f45
3 changed files with 1 additions and 29 deletions

View File

@@ -21,7 +21,7 @@ def exit(retcode):
def usage():
sys.stderr.write('Usage: packaging_tool.py <list|search|install|uninstall|pyvenv>\n')
sys.stderr.write('Usage: packaging_tool.py <list|install|uninstall|pyvenv>\n')
sys.stderr.flush()
exit(ERROR_WRONG_USAGE)
@@ -58,13 +58,6 @@ def do_install(pkgs):
error_no_pip()
return pip.main(['install'] + pkgs)
def do_search(pkgs):
try:
import pip
except ImportError:
error_no_pip()
return pip.main(['search'] + pkgs)
def do_uninstall(pkgs):
try:
@@ -122,11 +115,6 @@ def main():
if len(sys.argv) != 2:
usage()
do_list()
elif cmd == 'search':
if len(sys.argv) < 2:
usage()
pkgs = sys.argv[2:]
do_search(pkgs)
elif cmd == 'install':
if len(sys.argv) < 2:
usage()