[pypy-svn] pypy release-1.4.1: Forgot to checkin this file too.

arigo commits-noreply at bitbucket.org
Wed Dec 29 09:44:52 CET 2010


Author: Armin Rigo <arigo at tunes.org>
Branch: release-1.4.1
Changeset: r40260:7e0a8429d0ce
Date: 2010-12-29 09:44 +0100
http://bitbucket.org/pypy/pypy/changeset/7e0a8429d0ce/

Log:	Forgot to checkin this file too.

diff --git a/pypy/tool/release/win32build.py b/pypy/tool/release/win32build.py
new file mode 100644
--- /dev/null
+++ b/pypy/tool/release/win32build.py
@@ -0,0 +1,29 @@
+import autopath
+import package
+import subprocess
+import py, sys
+import shutil
+
+pypydir = py.path.local(autopath.pypydir)
+builddir = pypydir.join('translator', 'goal')
+
+VERSION = "1.4.1"
+
+def make_pypy(tag, options):
+    pypy = 'pypy%s' % (tag,)
+    args = [sys.executable,
+         str(builddir.join('translate.py')),
+         '--output=' + pypy,
+         ] + options
+    print "Execute", args
+    p = subprocess.Popen(args, cwd=str(builddir))
+    p.wait()
+    zipfile = 'pypy-%s-win32%s' % (VERSION, tag)
+    package.package(pypydir.dirpath(), zipfile, pypy, pypydir)
+
+shutil.copy(str(pypydir.join('..', '..', 'expat-2.0.1', 'win32', 'bin', 'release', 'libexpat.dll')), str(builddir))
+
+make_pypy('',            ['-Ojit'])
+make_pypy('-nojit',      [])
+#make_pypy('-stackless', [--stackless])
+#make_pypy('-sandbox',   [--sandbox])


More information about the Pypy-commit mailing list