[Scipy-svn] r4803 - trunk/tools/win32/build_scripts

scipy-svn at scipy.org scipy-svn at scipy.org
Tue Oct 21 00:04:40 EDT 2008


Author: cdavid
Date: 2008-10-20 23:04:36 -0500 (Mon, 20 Oct 2008)
New Revision: 4803

Modified:
   trunk/tools/win32/build_scripts/pavement.py
Log:
Add clean_bootstrap task.

Modified: trunk/tools/win32/build_scripts/pavement.py
===================================================================
--- trunk/tools/win32/build_scripts/pavement.py	2008-10-19 21:18:35 UTC (rev 4802)
+++ trunk/tools/win32/build_scripts/pavement.py	2008-10-21 04:04:36 UTC (rev 4803)
@@ -15,11 +15,16 @@
         src_dir = SRC_ROOT,
         pyver = PYVER
     ),
+    clean_bootstrap=Bunch(
+        src_dir = SRC_ROOT,
+        pyver = PYVER
+    ),
     build_sdist=Bunch(
         src_dir = SRC_ROOT
     )
 )
 
+# Clean everything, including bootstrap source tree
 @task
 def clean():
     # Clean sdist
@@ -35,7 +40,18 @@
     if pexists(bdir):
         rmtree(bdir)
 
+# Clean the bootstrap source tree for a clean build from scratch
 @task
+def clean_bootstrap():
+    bdir = bootstrap_dir(options.pyver)
+    for d in ["build", "dist"]:
+        if pexists(pjoin(bdir, d)):
+            shutil.rmtree(pjoin(bdir, d))
+
+    if pexists(pjoin(bdir, "site.cfg")):
+        os.remove(pjoin(bdir, "site.cfg"))
+
+ at task
 def build_sdist():
     cmd = ["python", "setup.py", "sdist", "--format=zip"]
     st = subprocess.call(cmd, cwd=options.src_dir)




More information about the Scipy-svn mailing list