From 581b3a038e7885588895b632e9d36facf20dafe5 Mon Sep 17 00:00:00 2001 From: Ian Wood Date: Sat, 1 Apr 2017 18:08:06 +0100 Subject: [PATCH] changed pip call to avoid logger config code in pip - this may not be resillient to change in pip, but works for 9.0.1 and the master branch of pip" --- senpy/extensions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/senpy/extensions.py b/senpy/extensions.py index d5bdc80..589e73f 100644 --- a/senpy/extensions.py +++ b/senpy/extensions.py @@ -338,7 +338,11 @@ class Senpy(object): for req in requirements: pip_args.append(req) logger.info('Installing requirements: ' + str(requirements)) - pip.main(pip_args) + + cmd_name, cmd_args = pip.parseopts(pip_args) + command = pip.commands_dict[cmd_name](isolated=pip.check_isolated(cmd_args)) + options, args = command.parse_args(cmd_args) + command.run(options, args) @classmethod def _load_module(cls, name, root):