Staging
v0.5.1
https://github.com/python/cpython
Revision f725bdb5c704e07578c7bbdd4c853f1e07fd3d16 authored by Thomas Heller on 25 January 2005, 20:46:48 UTC, committed by Thomas Heller on 25 January 2005, 20:46:48 UTC
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).
1 parent cf5d664
History
Tip revision: f725bdb5c704e07578c7bbdd4c853f1e07fd3d16 authored by Thomas Heller on 25 January 2005, 20:46:48 UTC
Running a bdist_wininst installer, built with Python 2.3, installing
Tip revision: f725bdb
File Mode Size
bdist_wininst
example_nt
os2emx
os2vacpp
.cvsignore -rw-r--r-- 30 bytes
WinMain.c -rw-r--r-- 447 bytes
_winreg.c -rw-r--r-- 42.7 KB
config.c -rw-r--r-- 3.0 KB
dl_nt.c -rw-r--r-- 908 bytes
dllbase_nt.txt -rw-r--r-- 3.3 KB
frozen_dllmain.c -rw-r--r-- 3.6 KB
getpathp.c -rw-r--r-- 17.5 KB
import_nt.c -rw-r--r-- 2.4 KB
make_versioninfo.c -rw-r--r-- 1.0 KB
msvcrtmodule.c -rwxr-xr-x 4.9 KB
py.ico -rw-r--r-- 766 bytes
pyc.ico -rw-r--r-- 766 bytes
pycon.ico -rw-r--r-- 766 bytes
pyconfig.h -rw-r--r-- 16.4 KB
python.mk -rw-r--r-- 234 bytes
python_exe.rc -rw-r--r-- 49 bytes
python_nt.rc -rw-r--r-- 1.8 KB
readme.txt -rw-r--r-- 4.1 KB
testpy.py -rw-r--r-- 850 bytes
w9xpopen.c -rw-r--r-- 3.6 KB
winsound.c -rw-r--r-- 7.1 KB

readme.txt

back to top