[Python-checkins] devinabox: Fix some issues with building coverage.py.

brett.cannon python-checkins at python.org
Mon Feb 28 23:03:51 CET 2011


brett.cannon pushed 3fd40a5f2e0e to devinabox:

http://hg.python.org/devinabox/rev/3fd40a5f2e0e
changeset:   30:3fd40a5f2e0e
user:        Brett Cannon <brett at python.org>
date:        Sat Feb 26 21:30:11 2011 -0800
summary:
  Fix some issues with building coverage.py.

files:
  make_a_box.py

diff --git a/make_a_box.py b/make_a_box.py
--- a/make_a_box.py
+++ b/make_a_box.py
@@ -126,7 +126,7 @@
 @rename('coverage.py')
 class CoveragePy(HgProvider):
 
-    """Cloned repository of coverage.py (WARNING: building takes a while)"""
+    """Clone of coverage.py (WARNING: building takes a while)"""
 
     url = 'https://brettsky@bitbucket.org/ned/coveragepy'
     directory = 'coveragepy'
@@ -141,17 +141,20 @@
             print('No CPython executable found')
             sys.exit(1)
         print('Running coverage ...')
-        regrest_path = os.path.join(CPython.directory, 'Lib', 'test',
+        regrtest_path = os.path.join(CPython.directory, 'Lib', 'test',
                                     'regrtest.py')
         subprocess.check_call([executable, self.directory, 'run', '--pylib',
                                regrtest_path])
-        # ``make distclean`` as you don't want to distribute your own build
-        with change_cwd(CPython.directory):
-            subprocess.check_call(['make', 'distclean'])
+        # Clean up from the test run
+        os.rmdir('build')
         # Generate the HTML report
         print('Generating report ...')
         subprocess.call([executable, 'coveragepy', 'html', '-i', '--omit',
                          '"*/test/*,*/tests/*"', '-d', 'coverage_report'])
+        # ``make distclean`` as you don't want to distribute your own build
+        print('Cleaning up the CPython build ...')
+        with change_cwd(CPython.directory):
+            subprocess.check_call(['make', 'distclean'])
 
 
 class Mercurial(Provider):

--
Repository URL: http://hg.python.org/devinabox


More information about the Python-checkins mailing list