[pypy-commit] buildbot default: handle the new pypy3 binary name

pjenvey noreply at buildbot.pypy.org
Wed Oct 15 20:44:54 CEST 2014


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: 
Changeset: r921:a768fa781d1b
Date: 2014-10-15 11:34 -0700
http://bitbucket.org/pypy/buildbot/changeset/a768fa781d1b/

Log:	handle the new pypy3 binary name

diff --git a/bot2/pypybuildbot/builds.py b/bot2/pypybuildbot/builds.py
--- a/bot2/pypybuildbot/builds.py
+++ b/bot2/pypybuildbot/builds.py
@@ -556,9 +556,12 @@
             haltOnFailure=True,
             workdir='.'))
         # copy pypy-c to the expected location within the pypy source checkout
+        command = ('PYPY_C="pypy-c/bin/pypy";'
+                   'if [ -e pypy-c/bin/pypy3 ]; then PYPY_C="pypy-c/bin/pypy3"; fi;'
+                   'cp -v $PYPY_C build/pypy/goal/pypy-c;')
         self.addStep(ShellCmd(
             description="move pypy-c",
-            command=['cp', '-v', 'pypy-c/bin/pypy', 'build/pypy/goal/pypy-c'],
+            command=command,
             haltOnFailure=True,
             workdir='.'))
         # copy generated and copied header files to build/include


More information about the pypy-commit mailing list