summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-10-03 06:51:03 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-10-03 06:51:03 +0000
commitb65b21c397381351965bf3f590054d2bccdd03d2 (patch)
treeb9677d174c72eb35ddbf4e7a6d64bd54b979c4df /tools
parentdf327a92b1589a66085c7201348eac055a39c08b (diff)
downloadnumpy-b65b21c397381351965bf3f590054d2bccdd03d2.tar.gz
Update doall script: take the python version to build binaries from the command line instead of global variable.
Diffstat (limited to 'tools')
-rw-r--r--tools/win32build/doall.py26
1 files changed, 19 insertions, 7 deletions
diff --git a/tools/win32build/doall.py b/tools/win32build/doall.py
index 19009d42b..eb07394ea 100644
--- a/tools/win32build/doall.py
+++ b/tools/win32build/doall.py
@@ -1,13 +1,25 @@
import subprocess
import os
-PYVER = "2.5"
+if __name__ == '__main__':
+ from optparse import OptionParser
+ parser = OptionParser()
+ parser.add_option("-p", "--pyver", dest="pyver",
+ help = "Python version (2.4, 2.5, etc...)")
-# Bootstrap
-subprocess.check_call(['python', 'prepare_bootstrap.py', '-p', PYVER])
+ opts, args = parser.parse_args()
+ pyver = opts.pyver
-# Build binaries
-subprocess.check_call(['python', 'build.py', '-p', PYVER], cwd = 'bootstrap-%s' % PYVER)
+ if not pyver:
+ pyver = "2.5"
-# Build installer using nsis
-subprocess.check_call(['makensis', 'numpy-superinstaller.nsi'], cwd = 'bootstrap-%s' % PYVER)
+ # 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)