[pypy-svn] r75339 - pypy/build/bot2/pypybuildbot

fijal at codespeak.net fijal at codespeak.net
Sat Jun 12 21:10:51 CEST 2010


Author: fijal
Date: Sat Jun 12 21:10:38 2010
New Revision: 75339

Modified:
   pypy/build/bot2/pypybuildbot/builds.py
Log:
Simplify building process by using external tool


Modified: pypy/build/bot2/pypybuildbot/builds.py
==============================================================================
--- pypy/build/bot2/pypybuildbot/builds.py	(original)
+++ pypy/build/bot2/pypybuildbot/builds.py	Sat Jun 12 21:10:38 2010
@@ -134,17 +134,10 @@
                          "--resultlog=pypyjit.log",
                          "pypy/module/pypyjit/test"],
                 logfiles={'pytestLog': 'pypyjit.log'}))
-        if platform != 'win32':
-            self.addStep(ShellCmd(
-                description="compress pypy-c",
-                command=["bzip2", "-kf", "pypy/translator/goal/pypy-c"]))
-        else:
-            self.addStep(ShellCmd(
-                description="compress pypy-c",
-                command=["python", "-c", "from bz2 import BZ2File; "
-                         "BZ2File('pypy/translator/goal/pypy-c.bz2', 'w')"
-                         ".write(open('pypy/translator/goal/pypy-c.exe'"
-                         ", 'rb').read())"]))
+        self.addStep(ShellCmd(
+            description="compress pypy-c",
+            command=["python", "pack.py"],
+            workdir='build/pypy/tool'))
         if pypyjit:
             kind = 'jit'
         else:



More information about the Pypy-commit mailing list