From f46f6c8decbe583f45ae2338a6bdd5d1317007b3 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 6 Feb 2018 14:03:23 -0800 Subject: [PATCH] Temp install of setuptools for import coverage. (#35752) --- test/runner/lib/sanity/import.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/runner/lib/sanity/import.py b/test/runner/lib/sanity/import.py index fbe83fb2a3..d11ce76c41 100644 --- a/test/runner/lib/sanity/import.py +++ b/test/runner/lib/sanity/import.py @@ -83,7 +83,9 @@ class ImportTest(SanityMultipleVersion): # make sure coverage is available in the virtual environment if needed if args.coverage: + run_command(args, generate_pip_install('pip', 'sanity.import', packages=['setuptools']), env=env) run_command(args, generate_pip_install('pip', 'sanity.import', packages=['coverage']), env=env) + run_command(args, ['pip', 'uninstall', '--disable-pip-version-check', '-y', 'setuptools'], env=env) run_command(args, ['pip', 'uninstall', '--disable-pip-version-check', '-y', 'pip'], env=env) cmd = ['importer.py'] + paths