[pypy-commit] pypy default: Trying to fix Windows package.py

arigo noreply at buildbot.pypy.org
Thu Sep 1 17:52:06 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r46985:8a9885e47d2c
Date: 2011-09-01 17:51 +0200
http://bitbucket.org/pypy/pypy/changeset/8a9885e47d2c/

Log:	Trying to fix Windows package.py

diff --git a/pypy/tool/release/package.py b/pypy/tool/release/package.py
--- a/pypy/tool/release/package.py
+++ b/pypy/tool/release/package.py
@@ -52,9 +52,13 @@
             pypy_c_dir = basedir.join('pypy', 'translator', 'goal')
         pypy_c = pypy_c_dir.join('pypy-c.exe')
         libpypy_c = pypy_c_dir.join('libpypy-c.dll')
+        libexpat = pypy_c_dir.join('libexpat.dll')
+        if not libexpat.check():
+            libexpat = py.path.local.sysfind('libexpat.dll')
+            assert libexpat, "libexpat.dll not found"
         binaries = [(pypy_c, pypy_c.basename),
                     (libpypy_c, libpypy_c.basename),
-                    (pypy_c_dir.join('libexpat.dll'), 'libexpat.dll')]
+                    (libexpat, libexpat.basename)]
     else:
         basename = 'pypy-c'
         if override_pypy_c is None:


More information about the pypy-commit mailing list