[pypy-commit] pypy win32-cleanup_2: (sthalik) add python27.lib to windows build package

mattip noreply at buildbot.pypy.org
Fri Feb 17 00:25:21 CET 2012


Author: mattip
Branch: win32-cleanup_2
Changeset: r52575:d6ccb305f556
Date: 2012-02-17 01:24 +0200
http://bitbucket.org/pypy/pypy/changeset/d6ccb305f556/

Log:	(sthalik) add python27.lib to windows build package

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
@@ -82,6 +82,9 @@
     for file in ['LICENSE', 'README']:
         shutil.copy(str(basedir.join(file)), str(pypydir))
     pypydir.ensure('include', dir=True)
+    if sys.platform == 'win32':
+        shutil.copyfile(str(pypy_c.dirpath().join("python27.lib")),
+                        str(pypydir.join('include/python27.lib')))
     # we want to put there all *.h and *.inl from trunk/include
     # and from pypy/_interfaces
     includedir = basedir.join('include')
diff --git a/pypy/translator/driver.py b/pypy/translator/driver.py
--- a/pypy/translator/driver.py
+++ b/pypy/translator/driver.py
@@ -559,6 +559,9 @@
                 newsoname = newexename.new(basename=soname.basename)
                 shutil.copy(str(soname), str(newsoname))
                 self.log.info("copied: %s" % (newsoname,))
+                if sys.platform == 'win32':
+                    shutil.copyfile(os.path.join(os.path.dirname(str(exename)), 'libpypy-c.lib'),
+                                    os.path.join(os.path.dirname(str(newexename)), 'python27.lib'))
             self.c_entryp = newexename
         self.log.info('usession directory: %s' % (udir,))
         self.log.info("created: %s" % (self.c_entryp,))


More information about the pypy-commit mailing list