]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Running a bdist_wininst installer, built with Python 2.3, installing
authorThomas Heller <theller@ctypes.org>
Tue, 25 Jan 2005 20:46:48 +0000 (20:46 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 25 Jan 2005 20:46:48 +0000 (20:46 +0000)
commitf725bdb5c704e07578c7bbdd4c853f1e07fd3d16
tree8f04c790ff61440dbf84f7594b4baaa971d7f842
parentcf5d664ad18974ab66eeedcf401dbfba71388cee
Running a bdist_wininst installer, built with Python 2.3, installing
for Python 2.4 caused a segfault when post_install_script was used.

The reason was that the file handle passed to PyRun_SimpleFile() was
created with MSVCRT.DLL, but Python 2.4 uses MSVCR71.DLL.

So, I replaced PyRun_SimpleFile() with PyRun_SimpleString().  The
segfault is gone, but the output of the postinstall script doesn't
show up, because still freopen() from MSVCRT is used.

(I would be very gratefull if someone proofreads the patch, at least).
PC/bdist_wininst/install.c