import subprocess
import os

PYVER = "2.5"

# Bootstrap
subprocess.check_call(['python', 'prepare_bootstrap.py', '-p', PYVER])

# Build binaries
subprocess.check_call(['python', 'build.py', '-p', PYVER], cwd = 'bootstrap-%s' % PYVER)

# Build installer using nsis
subprocess.check_call(['makensis', 'numpy-superinstaller.nsi'], cwd = 'bootstrap-%s' % PYVER)

@@ -26,23 +26,327 @@
 os%0A%0A
-PYVER = %222.5%22%0A%0A
+if __name__ == '__main__':%0A    from optparse import OptionParser%0A    parser = OptionParser()%0A    parser.add_option(%22-p%22, %22--pyver%22, dest=%22pyver%22,%0A                      help = %22Python version (2.4, 2.5, etc...)%22)%0A%0A    opts, args = parser.parse_args()%0A    pyver = opts.pyver%0A%0A    if not pyver:%0A        pyver = %222.5%22%0A%0A    
 # Bo
@@ -353,16 +353,20 @@
 otstrap%0A
+    
 subproce
@@ -424,17 +424,21 @@
 p', 
-PYVER%5D)%0A%0A
+pyver%5D)%0A%0A    
 # Bu
@@ -450,16 +450,20 @@
 inaries%0A
+    
 subproce
@@ -509,15 +509,42 @@
 p', 
-PYVER%5D,
+pyver%5D, %0A                         
  cwd
@@ -567,16 +567,20 @@
 ' %25 
-PYVER)%0A%0A
+pyver)%0A%0A    
 # Bu
@@ -604,16 +604,20 @@
 ng nsis%0A
+    
 subproce
@@ -672,16 +672,43 @@
 .nsi'%5D, 
+%0A                          
 cwd = 'b
@@ -726,11 +726,11 @@
 ' %25 
-PYVER
+pyver
 )%0A

Update doall script: take the python version to build binaries from the command line instead of global variable.