[Numpy-svn] r5556 - trunk/tools/win32build

numpy-svn@scip... numpy-svn@scip...
Mon Jul 28 00:08:04 CDT 2008


Author: cdavid
Date: 2008-07-28 00:07:59 -0500 (Mon, 28 Jul 2008)
New Revision: 5556

Modified:
   trunk/tools/win32build/prepare_bootstrap.py
Log:
prepare_bootstrap script now handles pyver correctly, and can be set from command line.

Modified: trunk/tools/win32build/prepare_bootstrap.py
===================================================================
--- trunk/tools/win32build/prepare_bootstrap.py	2008-07-28 05:01:47 UTC (rev 5555)
+++ trunk/tools/win32build/prepare_bootstrap.py	2008-07-28 05:07:59 UTC (rev 5556)
@@ -55,7 +55,7 @@
 
     target.write(cnt)
 
-def prepare_bootstrap(numver, pyver = "2.5"):
+def prepare_bootstrap(pyver):
     bootstrap = "bootstrap-%s" % pyver
     if os.path.exists(bootstrap):
         shutil.rmtree(bootstrap)
@@ -95,4 +95,15 @@
     return version
 
 if __name__ == '__main__':
-    prepare_bootstrap("2.5")
+    from optparse import OptionParser
+    parser = OptionParser()
+    parser.add_option("-p", "--pyver", dest="pyver",
+                      help = "Python version (2.4, 2.5, etc...)")
+
+    opts, args = parser.parse_args()
+    pyver = opts.pyver
+
+    if not pyver:
+        pyver = "2.5"
+
+    prepare_bootstrap(pyver)



More information about the Numpy-svn mailing list