[pypy-svn] r72074 - in pypy/trunk/pypy/tool: . test

fijal at codespeak.net fijal at codespeak.net
Wed Mar 10 22:26:02 CET 2010


Author: fijal
Date: Wed Mar 10 22:25:55 2010
New Revision: 72074

Modified:
   pypy/trunk/pypy/tool/package.py
   pypy/trunk/pypy/tool/test/test_package.py
Log:
Copy also LICENSE and README


Modified: pypy/trunk/pypy/tool/package.py
==============================================================================
--- pypy/trunk/pypy/tool/package.py	(original)
+++ pypy/trunk/pypy/tool/package.py	Wed Mar 10 22:25:55 2010
@@ -47,6 +47,8 @@
     shutil.copytree(str(basedir.join('pypy', 'lib')),
                     str(pypydir.join('pypy', 'lib')),
                     ignore=ignore_patterns('.svn', 'py', '*.pyc', '*~'))
+    for file in ['LICENSE', 'README']:
+        shutil.copy(str(basedir.join(file)), str(pypydir))
     pypydir.ensure('bin', dir=True)
     shutil.copy(str(pypy_c), str(pypydir.join('bin', 'pypy-c')))
     old_dir = os.getcwd()

Modified: pypy/trunk/pypy/tool/test/test_package.py
==============================================================================
--- pypy/trunk/pypy/tool/test/test_package.py	(original)
+++ pypy/trunk/pypy/tool/test/test_package.py	Wed Mar 10 22:25:55 2010
@@ -19,6 +19,8 @@
         assert builddir.join('test', 'pypy', 'lib', 'syslog.py').check()
         assert not builddir.join('test', 'pypy', 'lib', 'py').check()
         assert not builddir.join('test', 'pypy', 'lib', 'ctypes_configure').check()
+        assert builddir.join('test', 'LICENSE').check()
+        assert builddir.join('test', 'README').check()
         th = tarfile.open(str(builddir.join('test.tar.bz2')))
         assert th.getmember('test/pypy/lib/syslog.py')
     finally:



More information about the Pypy-commit mailing list