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

scipy-svn at scipy.org scipy-svn at scipy.org
Tue Oct 21 05:30:09 EDT 2008


Author: cdavid
Date: 2008-10-21 04:30:05 -0500 (Tue, 21 Oct 2008)
New Revision: 4817

Modified:
   trunk/tools/win32/build_scripts/pavement.py
Log:
Put clean_bootstrap action into separate function.

Modified: trunk/tools/win32/build_scripts/pavement.py
===================================================================
--- trunk/tools/win32/build_scripts/pavement.py	2008-10-21 09:28:34 UTC (rev 4816)
+++ trunk/tools/win32/build_scripts/pavement.py	2008-10-21 09:30:05 UTC (rev 4817)
@@ -66,14 +66,8 @@
 # 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)):
-            rmtree(pjoin(bdir, d))
+    raw_clean_bootstrap(options.pyver)
 
-    if pexists(pjoin(bdir, "site.cfg")):
-        os.remove(pjoin(bdir, "site.cfg"))
-
 @task
 def build_sdist():
     cmd = ["python", "setup.py", "sdist", "--format=zip"]
@@ -298,3 +292,13 @@
     bdir = bootstrap_dir(pyver)
     if pexists(bdir):
         rmtree(bdir)
+
+def raw_clean_bootstrap(pyver):
+    bdir = bootstrap_dir(pyver)
+    for d in ["build", "dist"]:
+        if pexists(pjoin(bdir, d)):
+            rmtree(pjoin(bdir, d))
+
+    if pexists(pjoin(bdir, "site.cfg")):
+        os.remove(pjoin(bdir, "site.cfg"))
+




More information about the Scipy-svn mailing list