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

scipy-svn@scip... scipy-svn@scip...
Tue Oct 21 04:28:38 CDT 2008


Author: cdavid
Date: 2008-10-21 04:28:34 -0500 (Tue, 21 Oct 2008)
New Revision: 4816

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

Modified: trunk/tools/win32/build_scripts/pavement.py
===================================================================
--- trunk/tools/win32/build_scripts/pavement.py	2008-10-21 07:36:36 UTC (rev 4815)
+++ trunk/tools/win32/build_scripts/pavement.py	2008-10-21 09:28:34 UTC (rev 4816)
@@ -61,19 +61,8 @@
 # Clean everything, including bootstrap source tree
 @task
 def clean():
-    # Clean sdist
-    sdir = pjoin(options.src_dir, "dist")
-    if pexists(sdir):
-        rmtree(sdir)
-    mani = pjoin(options.src_dir, "MANIFEST")
-    if pexists(mani):
-        os.remove(mani)
+    raw_clean(options.src_dir, options.pyver)
 
-    # Clean bootstrap directory
-    bdir = bootstrap_dir(options.pyver)
-    if pexists(bdir):
-        rmtree(bdir)
-
 # Clean the bootstrap source tree for a clean build from scratch
 @task
 def clean_bootstrap():
@@ -295,3 +284,17 @@
         ext = '.exe'
     name = "scipy-%s.win32-py%s%s" % (scipy_verstr, pyver, ext)
     return name
+
+def raw_clean(src_dir, pyver):
+    # Clean sdist
+    sdir = pjoin(src_dir, "dist")
+    if pexists(sdir):
+        rmtree(sdir)
+    mani = pjoin(src_dir, "MANIFEST")
+    if pexists(mani):
+        os.remove(mani)
+
+    # Clean bootstrap directory
+    bdir = bootstrap_dir(pyver)
+    if pexists(bdir):
+        rmtree(bdir)



More information about the Scipy-svn mailing list