427 Commits

Author SHA1 Message Date
Thomas Heller
f725bdb5c7 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).
2005-01-25 20:46:48 +00:00
Thomas Heller
cf5d664ad1 Set PYTHONHOME before loading Python, so that sys.path will be set correctly. 2005-01-25 19:47:48 +00:00
Andrew MacIntyre
e6ce1e789a update in readiness for 2.3.5 release 2005-01-17 13:06:27 +00:00
Andrew MacIntyre
cd82266f6b backport: make thread stack size compile-time tunable on OS/2, incr main stack 2005-01-17 12:22:38 +00:00
Thomas Heller
6e35b18b95 Close stdout and stderr, which are redirected into a temp file, before
trying to remove this file - the file was never removed before.

Completes the fix for [ 1067732 ] wininst --install-script leaves
residual files on C:\\
2004-12-22 15:46:01 +00:00
Thomas Heller
8f67c3e045 Backport a patch from Mark Hammond.
Partial fix for [1067732] - "wininst --install-script leaves residual
files on C:\"

'tempnam()' is used rather than 'tmpnam()' - 'tmpnam' creates a temp
file on the root of the current drive, and if this is readonly
explains the 'freopen' errors occasionally reported. 'tempnam' creates
the temp file in the %TEMP% directory.
2004-12-22 15:35:20 +00:00
Thomas Heller
ed70c40395 Backport from trunk, rev. 1.11 and 1.12. Don't hardcode the Python
version number.
2004-12-22 15:12:46 +00:00
Andrew MacIntyre
51420d3f74 backport of OS/2 specific fixes related to SF bug # 1003471 2004-12-12 08:36:02 +00:00
Thomas Heller
99a16964d1 Use PyMODINIT_FUNC. 2004-07-28 20:04:37 +00:00
Thomas Heller
4bdcd91f57 Ignore some more build products. 2004-07-14 15:20:23 +00:00
Thomas Heller
96f6cf14a1 Remove the annoing and useless messagebox asking about overwriting files.
Fixes SF #984290.

Backport from trunk.
2004-07-14 15:03:45 +00:00
Thomas Heller
13142f230b Add a warning so that it isn't forgotten to recreate the binary AND
CHECK INTO CVS if these files are changed.
2004-07-14 15:02:07 +00:00
Thomas Heller
b7580c2776 Don't complain that non-existant registry entries cannot be deleted.
Backported from trunk.
2004-07-14 14:56:11 +00:00
Thomas Heller
3183e7ee43 Fix for SF 982215: bdist_wininst - Next button not greyed out during file copy.
Patch from Mark Hammond.
Recompiled binary.
2004-07-02 07:54:30 +00:00
Thomas Heller
b433c59395 To avoid licensing issues, the stub exe for the bdist_wininst
installer is no longer compressed with upx.  This adds about 35 kB to
any installer.
2004-05-25 18:35:48 +00:00
Tim Peters
be853262ba Update copyright years. In the Windows resource, change the name of the
company to the PSF (Zope Corp and PythonLabs no longer have anything to
do with this!).
2004-05-11 18:11:11 +00:00
Thomas Heller
a98ec84445 When loading the Python dll to run the postinstall script, try to load
it from the install directory (as reported by the registry) in case it
is not found on the default Loadlibrary search path.

Fixes SF 935091: bdist_winist post-install script fails on non-admin Python

Will port to the trunk later.
2004-04-15 17:50:42 +00:00
Andrew MacIntyre
2c73bc090a add AF_UNIX notes 2004-04-11 12:13:53 +00:00
Andrew MacIntyre
61525be632 OS/2 VACPP build updates/fixes 2004-03-29 11:58:55 +00:00
Andrew MacIntyre
f5a17a6719 add definitions required for expat 1.95.7 2004-02-20 12:00:06 +00:00
Andrew MacIntyre
f1ec32506d - add notes about curses extension/DLL arrangements;
- various cleanups and updates.
2003-12-02 12:39:59 +00:00
Andrew MacIntyre
c82c559c02 - add build support for curses to be both extension and DLL, so that
curses_panel works;
- tweak compiler switches.
2003-12-02 12:38:11 +00:00
Guido van Rossum
b5afbd027b Backport:
Remove all uses of alloca() from this module.  The alloca() return value
isn't checked, and it *is* possible that a very large alloca() call is
made, e.g. when a large registry value is being read.  I don't know if
alloca() in that case returns NULL or returns a pointer pointing outside
the stack, and I don't want to know -- I've simply replaced all calls to
alloca() with either PyMem_Malloc() or PyString_FromStringAndSize(NULL,)
as appropriate, followed by a size check.  This addresses SF buf 851056.
2003-11-30 22:07:34 +00:00
Thomas Heller
2f507850a7 Backport from the trunk.
To build on windows, the manual editing of the python_nt.rc file to
change the version number is no longer required.

Instead, a make_versioninfo.exe is compiled, which spits out an
include file for python_nt.rc.
2003-10-22 19:38:10 +00:00
cvs2svn
eb7a27f9f2 This commit was manufactured by cvs2svn to create branch
'release23-maint'.
2003-10-21 20:02:35 +00:00