mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 06:39:38 +07:00
Removed unused PyPackageManager.findPackage()
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user