Tim Peters
d9ab979f36
PyEnumKey(): Remove unused local.
2006-02-19 03:34:15 +00:00
Georg Brandl
b2699b242d
Add sizeof() instead of hardcoding variable length
2006-02-18 23:44:24 +00:00
Georg Brandl
9a928e787c
Patch #977553 : speed up RegEnumKey call
2006-02-18 23:35:11 +00:00
Tim Peters
c7f6cf6247
getpythonregpath(): Squash compiler warning about
...
mixing signed and unsigned types in comparison.
Relatedly, `dataSize` is declared as DWORD, not as
int, so change relevant cast from (int) to (DWORD).
2006-02-16 00:35:06 +00:00
Martin v. Löwis
18e165558b
Merge ssize_t branch.
2006-02-15 17:27:45 +00:00
Martin v. Löwis
9fb181bab3
Add _lsprof.
2006-02-14 21:25:29 +00:00
Georg Brandl
b69406dc09
Update general copyright years to 2006.
2006-02-11 15:30:36 +00:00
Martin v. Löwis
f84d1b9375
Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.
...
Proposed by Tim Peters.
2006-02-11 09:27:05 +00:00
Tim Peters
773feaf529
initwinsound(): this no longer compiled on Windows,
...
because code snuck in between auto declarations.
2006-01-19 15:25:07 +00:00
Tim Peters
2188bf03bc
initmsvcrt(): This no longer compiled on Windows, because
...
a recent change inserted code before an auto declaration.
2006-01-19 15:21:30 +00:00
Neal Norwitz
1ac754fa10
Check return result from Py_InitModule*(). This API can fail.
...
Probably should be backported.
2006-01-19 06:09:39 +00:00
Martin v. Löwis
4e6aff5e9b
Make zlib builtin.
2006-01-03 07:10:14 +00:00
Tim Peters
c3d12ac88c
const poisoning, spreading to fix new const warnings
...
in _winreg.c.
2005-12-24 06:03:06 +00:00
Fredrik Lundh
e515293567
added TerminateProcess support to _subprocess driver
2005-12-18 21:06:46 +00:00
Fredrik Lundh
63168a52f4
added PSF licensing blurbs to relevant files
2005-12-14 22:29:34 +00:00
Walter Dörwald
51490ace7e
Fix typo.
2005-11-30 20:16:17 +00:00
Martin v. Löwis
e2a060257f
Silence VS2005 warnings about deprecated functions.
2005-11-29 17:09:13 +00:00
Martin v. Löwis
30b4975d29
Limit x86 machine instructions and Win95 support to _M_IX86.
2005-11-29 17:08:24 +00:00
Fredrik Lundh
3a49e92d7d
r858@spiff: Fredrik | 2005-11-10 23:40:04 +0100
...
#1346547
added basic error checking to the STARTUPINFO code
in CreateProcess.
2005-11-12 10:15:14 +00:00
Fredrik Lundh
bb4692b6f2
r849@spiff: Fredrik | 2005-11-09 10:00:04 +0100
...
fixed resource leak in _subprocess.CreateProcess when using
explicit environments
2005-11-12 10:15:03 +00:00
Martin v. Löwis
ab0f947a21
Remove .cvsignore files, as they live in svn:ignore
...
properties now.
2005-10-30 22:01:41 +00:00
Fred Drake
db390c1ad8
fix typos, mostly in comments
2005-10-28 14:39:47 +00:00
Raymond Hettinger
d56827c38f
Add AST files to VC6 build.
2005-10-23 04:47:13 +00:00
Raymond Hettinger
94ac197531
Update the PC configuration and project files for sha256 and sha512.
2005-08-24 00:28:21 +00:00
Georg Brandl
7eb4b7d177
Fix all wrong instances of "it's".
2005-07-22 21:49:32 +00:00
Raymond Hettinger
9c323f8de4
SF patch #941881 : PEP 309 Implementation (Partial Function Application).
...
Combined efforts of many including Peter Harris, Hye-Shik Chang,
Martin v. Löwis, Nick Coghlan, Paul Moore, and Raymond Hettinger.
2005-02-28 19:39:44 +00:00
Andrew MacIntyre
6ed710a15b
update version numbers
2005-02-17 12:50:27 +00:00
Andrew MacIntyre
578371f080
add notes about subprocess module & thread stacks, SSL support
2005-02-17 12:46:34 +00:00
Andrew MacIntyre
744b313d85
add build machinery for the SSL socket module
2005-02-17 12:44:51 +00:00
Trent Mick
4d81ac9ca8
Update PSF copyright year to 2005.
2005-02-09 21:03:47 +00:00
Thomas Heller
9f2e3be4e8
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.
Already backported.
2005-02-03 20:35:10 +00:00
Thomas Heller
8abe7bfb2f
Set PYTHONHOME before loading Python, so that sys.path will be set correctly.
...
Already backported.
2005-02-03 20:11:28 +00:00
Andrew MacIntyre
ff59f3c416
make thread stack size compile-time tunable on OS/2, increase main stack
2005-01-17 12:18:12 +00:00
Thomas Heller
54266fce8d
cvsignore files generated by make_versioninfo.
2004-12-31 16:37:32 +00:00
Martin v. Löwis
a2cc2695bb
Update example to VC 7.1. Will backport to 2.4.
2004-12-29 14:15:58 +00:00
Thomas Heller
0f25b72228
Close stdout and stderr, which are redirected into a temp file, before
...
trying to remove this file - the file was never removed before.
Fixes [ 1067732 ] wininst --install-script leaves residual files
Already backported.
2004-12-22 17:24:14 +00:00
Andrew MacIntyre
d0278ec97f
OS/2 specific fixes related to SF bug # 1003471
2004-12-12 08:28:11 +00:00
Raymond Hettinger
de7b99045d
Update the MSC6 pythoncore projects to compile for Py2.5
2004-12-02 08:53:14 +00:00
Thomas Heller
8992b9bdf5
printf format code for integers is %d not %s.
...
Will backport.
2004-12-01 19:43:02 +00:00
Thomas Heller
6ad6ee6411
Update import library name on windows.
2004-12-01 19:39:52 +00:00
Thomas Heller
9cc5cb7c4b
Running the pre-install or post-install script did not work when
...
Python was installed with the 'only for me' option. The registry key
had a hardcoded '2.3' in it where the python version chosen for
installation should be used instead.
Will backport myself.
2004-12-01 18:18:08 +00:00
Peter Astrand
c1d6536d60
When using shell=True on Windows, don't display a shell window by default. Fixes #1057061 .
2004-11-07 14:30:34 +00:00
Martin v. Löwis
919637afb0
Add _subprocess.c
2004-10-15 04:27:51 +00:00
Martin v. Löwis
15b23a083d
Patch #1020042 : Only define HAVE_UINTPTR_T for VC 7.x.
2004-10-15 04:26:18 +00:00
Tim Peters
4eb59782a8
Supply the _subprocess module under 7.1. I'm not sure what the status
...
of this should be on non-WIN32 Windows variants.
2004-10-12 21:48:57 +00:00
Tim Peters
f3250b0b0b
Before this turns into an unreadable mess, follow PEP 7 by using
...
hard tab indents in C code.
2004-10-12 21:38:22 +00:00
Fredrik Lundh
5b3687df2e
Added Peter Astrand's subprocess module.
2004-10-12 15:26:28 +00:00
Tim Peters
7f468f29f4
SF patch 1044089: New C API function PyEval_ThreadsInitialized(), by Nick
...
Coghlan, for determining whether PyEval_InitThreads() has been called.
Also purged the undocumented+unused _PyThread_Started int.
2004-10-11 02:40:51 +00:00
Andrew MacIntyre
fec1ce0b72
remove rotor module
2004-10-03 08:29:55 +00:00
Andrew MacIntyre
3dac89edaf
note module removals, update on BitTorrent issue
2004-10-03 08:26:36 +00:00
Andrew MacIntyre
96b3725ca0
bring modules up to date, correct .DEF file version
2004-10-03 08:11:30 +00:00
Tim Peters
862f0593d8
Introduced a Py_IS_NAN macro, which probably works on the major platforms
...
today. pyconfig.h can override it if not, and can also override
Py_IS_INFINITY now. Py_IS_NAN and Py_IS_INFINITY are overridden now
for Microsoft compilers, using efficient MS-specific spellings.
2004-09-23 19:11:32 +00:00
Martin v. Löwis
5a6653cee1
Revert creation of launcher.exe
2004-09-08 15:57:36 +00:00
Martin v. Löwis
97329754f8
Add support for launcher.exe
2004-09-07 15:40:12 +00:00
Martin v. Löwis
ab9351bf36
Add main program for icon file.
2004-09-03 13:32:57 +00:00
Raymond Hettinger
53e50cb6b3
Remove rotor from the build.
2004-08-31 19:33:47 +00:00
Raymond Hettinger
6ce6ef3e78
Remove rotor and xreadlines from VC 6 build.
2004-08-31 18:54:35 +00:00
Martin v. Löwis
7bbed946ea
Fix installdir for Tix
2004-08-31 16:19:01 +00:00
Tim Peters
adadc0f56f
Remove rotor and xreadlines from VC 7.1 build.
2004-08-31 14:29:12 +00:00
Martin v. Löwis
89a0b7d93a
Add patch for Tix 8.1.4.
2004-08-31 06:43:28 +00:00
Martin v. Löwis
08d786a608
Help compiling icons into an exe, for use with MSI advertisement.
2004-08-13 15:26:40 +00:00
Tim Peters
8484fbf0f6
SF bug 1003471: Python 1.5.2 security vulnerability
...
This was probably fixed in rev 1.32 of getpath.c, but there are so
many paths thru the code that invoke joinpath() it's not at all
obvious that it *is* fixed. It doesn't help confidence that a crucial
precondition for calling joinpath() was neither documented nor verified.
It is now, and joinpath() will barf with a fatal error now rather than
overrun the buffer, if the precondition isn't met.
Note that this patch only changes the Windows flavor. I attached another
patch to the bug report for the POSIX flavor (which I can't test
conveniently).
2004-08-07 19:12:27 +00:00
Raymond Hettinger
cbcff93d49
Restore compilation on MSVC++ 6.0
2004-08-03 08:52:46 +00:00
Thomas Heller
a18331de4e
Use PyMODINIT_FUNC.
2004-07-28 20:02:52 +00:00
Hye-Shik Chang
efdc16ffbb
Remove unused source file from Windows project files.
2004-07-28 09:45:20 +00:00
Hye-Shik Chang
978d26256b
Add missing _codecs_iso2022 module of cjkcodecs. I'll add unittest
...
for it soon.
2004-07-28 09:39:54 +00:00
Martin v. Löwis
fe393f47c6
Use intptr_t/uintptr_t on Windows
2004-07-27 15:57:24 +00:00
Martin v. Löwis
512efb464b
Properly check for Win64 compilers.
2004-07-27 14:16:14 +00:00
Thomas Heller
876d990ae0
The binary layout of cfgdata has changed, so the magic number has to
...
change as well.
Display an additional message box when a mismatch is detected.
2004-07-19 09:57:58 +00:00
Hye-Shik Chang
07e5dc8813
Teach VC6 project file about the new cjkcodecs structure.
2004-07-18 15:36:31 +00:00
Tim Peters
3d7d372ce3
Whitespace normalization, via reindent.py.
2004-07-18 06:25:50 +00:00
Tim Peters
6920e49e7e
Woo hoo! All the encoding tests pass on Windows (& I downloaded the
...
14 input files needed to run all of them).
2004-07-18 05:06:31 +00:00
Tim Peters
cc8f997543
More cjkcodecs recovery: Python at least compiles on Window again.
2004-07-18 04:30:37 +00:00
Thomas Heller
0062be26d8
Ignore some more build products.
2004-07-14 15:19:45 +00:00
Thomas Heller
d1d92ea59a
Add a warning so that it isn't forgotten to recreate the binaries AND
...
CHECK INTO CVS if these files are changed.
2004-07-14 15:17:04 +00:00
Thomas Heller
55a9864cb4
Don't complain that non-existant registry entries cannot be deleted.
2004-07-14 14:53:50 +00:00
Andrew MacIntyre
378d3c0e51
bring OS/2 EMX port build environment up to date
2004-07-07 13:55:25 +00:00
Thomas Heller
ad6ce46f49
Remove the annoing and useless messagebox asking about overwriting files.
...
Fixes SF #984290 .
2004-07-07 07:34:40 +00:00
Mark Hammond
f9bfdd850c
Patch [ 983775 ] Allow bdist_wininst to install for non-admin users
...
to address bugs:
[ 555812 ] installing extension w/o admin rights
[ 555810 ] removing extensions without admin rights
* When enumerating the Python versions found, also remember the HKEY
they were found under.
* When installing, if Python was installed under HKCU, we will too.
If Python was installed under HKLM, we check the permissions of
the current user, and install where we can.
* The "root" key we use is a global variable - all registry setting and
delete functions use this global rather than a hardcoded HKLM.
* A new entry is written to the install log, indicating the key we used.
Uninstallation is based on this key.
* 'tempnam()' is used rather than 'tmpnam()' - 'tmpnam' creates a temp
file on the root of the current drive, and if this is readonly would
explain the 'freopen' errors occasionally reported. 'tempnam'
creates the temp file in the %TEMP% directory.
2004-07-02 23:53:16 +00:00
Thomas Heller
32b8f8052a
Fix for SF 982215: bdist_wininst - Next button not greyed out during file copy.
...
Patch from Mark Hammond.
Recompiled binary.
Already packported to the 2.3 branch.
2004-07-02 08:02:40 +00:00
Thomas Heller
74db40419e
The wininst.exe is no longer compressed with UPX.
2004-06-18 18:29:46 +00:00
Thomas Heller
48340390ac
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
Already backported.
2004-06-18 17:03:38 +00:00
Tim Peters
2242fe84f9
Teach MSVC 6 about pystrtod.c.
2004-06-08 20:32:58 +00:00
Thomas Heller
9f5f056d75
Remove the pcre module.
2004-06-02 18:58:55 +00:00
Raymond Hettinger
19a02ece02
Add genobject.c to the MSVC++ 6.0 build.
2004-06-01 16:29:57 +00:00
Raymond Hettinger
97b6484dc4
Update the DLL example to work with Py2.4.
2004-05-15 07:39:00 +00:00
Tim Peters
07ce3b704b
Changed company name to PSF. Added 2004 to copyright years.
2004-05-11 18:14:05 +00:00
Raymond Hettinger
e898d1987e
Complete perky's name change patch.
2004-04-27 04:52:47 +00:00
Thomas Heller
602472215b
Remove the Modules/heaqmodule.c, and add Modules/_heapmodule.c, so
...
that the project compiles again with VC6.
2004-04-22 18:30:17 +00:00
Raymond Hettinger
c46cb2a1a9
* Restore the pure python version of heapq.py.
...
* Mark the C version as private and only use when available.
2004-04-19 19:06:21 +00:00
Thomas Heller
b4fb86243e
The wininst-6.exe template binary for bdist_wininst is now linked
...
with zlib-1.2.1.
2004-04-16 18:49:35 +00:00
Thomas Heller
89adf0a601
The wininst-7.1.exe template binary for bdist_wininst is now linked
...
with zlib-1.2.1.
UPX needs the --force flag to be able to compress it.
2004-04-16 18:47:50 +00:00
Thomas Heller
9614219140
Minor reformatting.
2004-04-15 18:19:02 +00:00
Andrew MacIntyre
b88820058f
add AF_UNIX notes
2004-04-11 12:05:28 +00:00
Andrew MacIntyre
da4d6cb573
OS/2 VACPP build updates/fixes
2004-03-29 11:53:38 +00:00
Tim Peters
bd6850f6cb
Ignore oodles of MSVC-generated files.
2004-03-20 05:00:56 +00:00
Tim Peters
4ae4f2658b
A helper for rt.bat, copied (but with path adjustment) from PCbuild.
2004-03-20 04:57:32 +00:00
Thomas Heller
6837f6591b
Solution and project file to build wininstXX.exe with MSVC7.1 (Visual
...
Studio .NET 2003).
The output files are named wininst-7.1.exe and wininst-7.1_d.exe.
2004-02-20 18:23:47 +00:00
Thomas Heller
cad71d0a4a
To avoid problems with conflicting dlls, the windows installers built
...
by bdist_wininst *must* use the same runtime libary as the Python
version.
Actually this means the Python version where the installer is run, not
the one which is used to build it. Must think about that - for now I
assume MSVC6 is used up to Python 2.3, and MSVC7.1 is used starting at
Python 2.4.
So the filename for wininst.exe is now wininst-6.exe for the Release
version and wininst-6_d.exe for the Debug version, when built with
MSVC6.
2004-02-20 18:05:13 +00:00
Thomas Heller
a19cdad6dc
Patch #892660 from Mark Hammond, for distutils bdist_wininst command.
...
install.c: support for a 'pre-install-script', run before anything has
been installed. Provides a 'message_box' module function for use by
either the pre-install or post-install scripts.
bdist_wininst.py: support for pre-install script. Typo (build->built),
fixes so that --target-version can still work, even when the
distribution has extension modules - in this case, we insist on
--skip-build, as we still can't actually build other versions.
2004-02-20 14:43:21 +00:00