From 77682cfe830e9839c12d16d66616df681b2f091a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 13 Jul 2015 10:41:43 +0300 Subject: [PATCH] Allow setup.py to run without coverage installed --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 02a70453..4d001be6 100755 --- a/setup.py +++ b/setup.py @@ -1,7 +1,6 @@ import os from distutils.core import setup, Command -import coverage import unittest import logging.config @@ -23,6 +22,7 @@ def finalize_options(self): pass def run(self): + import coverage cov = coverage.coverage() cov.start()