diff --git a/plinth/tests/coverage/test_coverage.py b/plinth/tests/coverage/test_coverage.py index ab6381565..b513a26ff 100644 --- a/plinth/tests/coverage/test_coverage.py +++ b/plinth/tests/coverage/test_coverage.py @@ -68,8 +68,14 @@ class TestCoverageCommand(setuptools.Command): """ Main command implementation. """ + if self.distribution.install_requires: + self.distribution.fetch_build_eggs( + self.distribution.install_requires) # erase any existing HTML report files + if self.distribution.tests_require: + self.distribution.fetch_build_eggs(self.distribution.tests_require) + try: shutil.rmtree(COVERAGE_REPORT_DIR, True) except: diff --git a/setup.py b/setup.py index aad799bb9..970a0f8de 100755 --- a/setup.py +++ b/setup.py @@ -114,9 +114,9 @@ setuptools.setup( install_requires=[ 'cherrypy >= 3.0', 'django >= 1.7.0', - 'django-bootstrap-form', - 'coverage >= 3.7' + 'django-bootstrap-form' ], + tests_require=['coverage >= 3.7'], include_package_data=True, package_data={'plinth': ['templates/*', 'modules/*/templates/*']},