[pypy-svn] r75475 - pypy/trunk/pypy/tool/release

fijal at codespeak.net fijal at codespeak.net
Sun Jun 20 07:38:30 CEST 2010


Author: fijal
Date: Sun Jun 20 07:38:27 2010
New Revision: 75475

Modified:
   pypy/trunk/pypy/tool/release/package.py
Log:
Package includes together with everything else


Modified: pypy/trunk/pypy/tool/release/package.py
==============================================================================
--- pypy/trunk/pypy/tool/release/package.py	(original)
+++ pypy/trunk/pypy/tool/release/package.py	Sun Jun 20 07:38:27 2010
@@ -34,8 +34,12 @@
 def package(basedir, name='pypy-nightly', rename_pypy_c='pypy-c',
             copy_to_dir = None, override_pypy_c = None):
     basedir = py.path.local(basedir)
+    if sys.platform == 'win32':
+        basename = 'pypy-c.exe'
+    else:
+        basename = 'pypy-c'
     if override_pypy_c is None:
-        pypy_c = basedir.join('pypy', 'translator', 'goal', 'pypy-c')
+        pypy_c = basedir.join('pypy', 'translator', 'goal', basename)
     else:
         pypy_c = py.path.local(override_pypy_c)
     if not pypy_c.check():
@@ -53,6 +57,13 @@
                     ignore=ignore_patterns('.svn', 'py', '*.pyc', '*~'))
     for file in ['LICENSE', 'README']:
         shutil.copy(str(basedir.join(file)), str(pypydir))
+    pypydir.ensure('include', dir=True)
+    # we want to put there all *.h from module/cpyext/include
+    # and from pypy/_interfaces
+    for n in basedir.join('pypy', 'module', 'cpyext', 'include').listdir('*.h'):
+        shutil.copy(str(n), str(pypydir.join('include')))
+    for n in basedir.join('pypy', '_interfaces').listdir('*.h'):
+        shutil.copy(str(n), str(pypydir.join('include')))
     pypydir.ensure('bin', dir=True)
     archive_pypy_c = pypydir.join('bin', rename_pypy_c)
     shutil.copy(str(pypy_c), str(archive_pypy_c))



More information about the Pypy-commit mailing list