Commit Graph

485 Commits

Author SHA1 Message Date
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
Skip Montanaro 7befb9966e remove support for missing ANSI C header files (limits.h, stddef.h, etc). 2004-02-10 16:50:21 +00:00
Skip Montanaro db6080507d Remove support for --without-universal-newlines (see PEP 11). 2004-02-07 13:53:46 +00:00
Skip Montanaro 7e11a016e6 Remove HAVE_STRPTIME - no longer necessary with the pure Python version of
time.strptime().
2004-02-07 12:55:46 +00:00
Raymond Hettinger 756b3f3c15 * Move collections.deque() in from the sandbox
* Add unittests, newsitem, and whatsnew
* Apply to Queue.py mutex.py threading.py pydoc.py and shlex.py
* Docs are forthcoming
2004-01-29 06:37:52 +00:00
Tim Peters a70e6d8e2a Added the cjkcodecs files to the MSVC 6 build. 2004-01-25 03:25:40 +00:00
Martin v. Löwis daea3e5032 Add cjkcodecs to build process 2004-01-21 07:54:02 +00:00
Skip Montanaro ce59c04127 Remove support for SunOS 4.
Remove BAD_EXEC_PROTOYPE (leftover from IRIX 4 demolition).
2004-01-17 14:19:44 +00:00
Skip Montanaro b9949dbe6c Remove support for DYNIX, IRIX 4, --with-sgi-dl, --with-dl-dld 2004-01-17 04:04:13 +00:00
Skip Montanaro b9820a3b77 Remove support for minix.
Remove unused and unnecessary checks for sizeof(char).
2004-01-17 00:16:12 +00:00
Raymond Hettinger 0c4102760c SF Patch #864863: Bisect C implementation
(Contributed by Dmitry Vasiliev.)
2004-01-05 10:13:35 +00:00
Tim Peters 71745802ec Update to record .pyd files removed for Python 2.4. 2004-01-04 03:00:51 +00:00
Tim Peters 12cfa6d662 That's it -- works as well under VC6 as it ever did now. 2004-01-04 02:51:36 +00:00
Tim Peters 055844ea80 The _tkinter subproject works with VC6 again. 2004-01-04 02:32:53 +00:00
Tim Peters 590de2c20c The bz2 subproject works with VC6 again. 2004-01-04 02:30:49 +00:00
Tim Peters f32b0271a9 The _ssl subproject may <heh> be working w/ VC6 again. 2004-01-04 02:27:33 +00:00
Tim Peters c844a03edf The _bsddb subproject works again under VC6. 2004-01-04 02:12:55 +00:00
Tim Peters caba60a752 Removed dead text about MS subprojects that no longer exist. 2004-01-04 02:04:35 +00:00
Tim Peters 28df74fc62 Getting closer (but not yet there) to being able to compile under VC6
again.  Removed the following subprojects and folded them into pythoncore,
to match what's being done under VC7.  We *can* build the core DLL
under VC6 again after this:

datetime.dsp
winreg.dsp
parser.dsp
_sre.dsp
_csv.dsp
mmap.dsp
_symtable.dsp
2004-01-04 02:00:47 +00:00
Tim Peters ff8505dc89 Tons of changes to get this closer to being buildable from this directory;
still far away, but a lot closer than it was.
2004-01-03 05:45:59 +00:00
Martin v. Löwis 203eec46c1 Move VC6 project files here. 2004-01-02 21:15:07 +00:00
Martin v. Löwis 48918f7109 Update build procedure to VC 7.1; make more modules builtin. 2004-01-02 21:14:37 +00:00
Andrew MacIntyre 4d04639380 add definitions required for expat 1.95.7 2003-12-25 13:25:20 +00:00
Andrew MacIntyre c2138af413 - add notes about os.link() emulation;
- various minor cleanups and updates.
2003-12-02 12:23:07 +00:00
Andrew MacIntyre 51578ae43d - add build support for curses extension to be a normal DLL as well as
a Python extension, so that the curses_panel extension works.
- minor compiler switch tweak.
2003-12-02 12:21:20 +00:00
Guido van Rossum a6a38ad55c 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.
Will backport to 2.3 next.
2003-11-30 22:01:43 +00:00
Raymond Hettinger b3af1813eb Convert heapq.py to a C implementation. 2003-11-08 10:24:38 +00:00
Walter Dörwald f0dfc7ac5c Fix a bunch of typos in documentation, docstrings and comments.
(From SF patch #810751)
2003-10-20 14:01:56 +00:00
Thomas Heller 13dbabe46e 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.

Will backport to 2.3
2003-10-10 16:57:45 +00:00
Thomas Heller 6019f9a65d Remove a stray single quote.
Will backport to release23-maint.
2003-08-18 17:53:33 +00:00
Mark Hammond 67e5582dfc Complete move of windows builds to 2.4alpha 2003-07-31 02:06:22 +00:00
Tim Peters 342aab1c48 Repaired botched release serial number. 2003-07-29 00:25:20 +00:00
Tim Peters 6cb2e0d554 Bump Windows resource version macro for 2.3 final. 2003-07-29 00:08:01 +00:00
Tim Peters 6560a254ea Update version numbers and dates for 2.3c2 -- we won't be able to do this
during the day tomorrow, so doing it earlier than I'd like.
2003-07-24 00:15:46 +00:00
Tim Peters 29dfcd108d Bump the release number to 2.3c1. 2003-07-17 14:48:26 +00:00
Andrew MacIntyre bac1ea937e More pre-2.3 build tweaks for the OS/2 EMX port:
- more clean up of the generated import library definiton (.DEF file)
  following checking of patch 770521, and tightening of the sed regexps.

- use -O3 even with gcc 2.8.1 - worth nearly 10% with 2.3; worth
  nothing with 2.2.x.

- clean up a couple of whitespace issues introduced by a cut'n'paste.
2003-07-16 13:31:11 +00:00
Andrew MacIntyre 4ee893fe39 More pre-2.3 build tweaks for the OS/2 EMX port:
- separate the building of the core from the wrapper executables and the
  external modules (.PYDs), based on the Py_BUILD_CORE define;

- clean up the generated import library definiton (.DEF file) to remove
  references to a number of non-static symbols that aren't part of the
  Python API and which shouldn't be exported by the core DLL;

- compile the release build with -fomit-frame-pointer, for a small
  performance gain;

- make "make clean" remove byte compiled Python library files.
2003-07-13 13:41:59 +00:00
Andrew MacIntyre b0f5e5a70c update OS/2 EMX port notes 2003-07-10 12:55:30 +00:00
Tim Peters 63fd15c3d3 Bump release level to 2.3b2. 2003-06-29 00:57:17 +00:00
Andrew MacIntyre 0dda40035f add support for os.tmpfile() 2003-06-09 08:16:59 +00:00
Andrew MacIntyre 58f22ccc01 reorganise modules, so that most standard extensions are built into
the Python DLL.  this slightly improves performance; reduces
fragmentation of address spaces and slightly reduces memory footprint.
2003-06-09 08:16:02 +00:00
Andrew MacIntyre fae8953a59 various updates 2003-06-09 08:15:14 +00:00
Andrew MacIntyre 23ec1dcf78 bump stack size to cater for _sre recursion.
reorganise modules, so that most standard extensions are built into
the Python DLL.  this slightly improves performance; reduces
fragmentation of address spaces and slightly reduces memory footprint.
2003-06-09 08:14:03 +00:00
Walter Dörwald fee10040b4 sound_playsound() doesn't have to be visible externally,
so make it static.
2003-05-22 17:22:54 +00:00
Tim Peters 3209410cb5 Bump version number to 2.3b1. 2003-04-24 16:45:34 +00:00
Andrew MacIntyre 0c83348d5c minor cleanups and whitespace normalisation 2003-04-22 03:21:42 +00:00
Andrew MacIntyre 631e87fb3d Makefile & config.c:
- restructure build for modules now in Python DLL

README.os2emx
- clean out old cruft no longer appropriate now that EMX port builds
  from CVS
- reflect move of modules into core DLL
- add section on building from source
2003-04-21 14:33:04 +00:00
Andrew MacIntyre d4c9b16b34 Makefile:
- add _csv module to the build list
- various cleanups

config.c:
- various cleanups

pyconfig.h:
- various cleanups
2003-04-21 14:28:01 +00:00
Martin v. Löwis 6920652823 Patch #714957: Explain ADDMODULE MARKER. 2003-04-18 10:51:14 +00:00
Guido van Rossum e1252684be Add MessageBeep() API. 2003-04-09 19:38:08 +00:00
Martin v. Löwis b9a0f91218 Rename LONG_LONG to PY_LONG_LONG. Fixes #710285. 2003-03-29 10:06:18 +00:00
Tim Peters 82d61956fa Changed the DLL base-address assignment for _csv so it no longer
obviously overlaps w/ datetime (but may -- no time for more here now).
2003-03-21 02:02:02 +00:00
Tim Peters 0d7ce4e221 Teach the Windows build & installer about the new csv module + DLL. 2003-03-21 01:55:41 +00:00
Andrew MacIntyre 4f28c4da36 OS/2 EMX build updates for recent CVS changes 2003-02-19 12:42:36 +00:00
Tim Peters 1441cf9dfc Bump version # to 2.3a2. 2003-02-18 21:58:53 +00:00
Raymond Hettinger 96ef8115dd Move itertools module from the sandbox and into production. 2003-02-01 00:10:11 +00:00
Mark Hammond 61bb35f440 Fix [ 583477 ] wrong dest size.
Note this code is not used by the core on Win32, but in a block used only
by Windows CE.
2003-01-29 22:38:29 +00:00
Mark Hammond c9083b66bd Correct docstring for SetValueEx() 2003-01-15 23:38:15 +00:00
Tim Peters 9c2fbb5619 There are two more copyright notices in the Windows world:
PC/python_nt.rc sets up the DLL version resource (displayed when you
right-click on the DLL and select Properties).

PCbuld/python20.wse sets up the installer version resource (displayed
when you right-click on the installer .exe and select Properties).  Turns
out this one hadn't been updated since 2001 <frown>!
2003-01-02 17:09:19 +00:00
Andrew MacIntyre 214d39a0ee catch up with zipimport changes to std getpathp.c 2003-01-02 12:41:58 +00:00
Andrew MacIntyre 5180123a7b bring structure closer to std config.c, whitespace normalisation 2003-01-02 12:40:41 +00:00
Andrew MacIntyre 3c5bfbed1c fix a merge mistake - readline not built by default 2003-01-02 12:38:39 +00:00
Neal Norwitz a8aed02f1e Make sure zip_path is null-terminated, since it's on the stack 2002-12-31 12:35:41 +00:00
Andrew MacIntyre ab495052ad DLL export definition refresh 2002-12-31 11:25:42 +00:00
Andrew MacIntyre e52aa5ce48 add universal newline support to configuration 2002-12-31 11:24:43 +00:00
Andrew MacIntyre d65778a9bf whitespace cleanup 2002-12-31 11:23:50 +00:00
Andrew MacIntyre 7c90a8950a getenv() replacement not required 2002-12-31 11:20:37 +00:00
Andrew MacIntyre 978697bf03 Build process updates:
- add new modules (zipimport, datetime, _random, bz2, _symtable)
 - build pyexpat with expat sources from Python distribution
 - regression test with and without compiled bytecode
2002-12-31 11:18:08 +00:00
Just van Rossum 52e14d640b PEP 302 + zipimport:
- new import hooks in import.c, exposed in the sys module
- new module called 'zipimport'
- various changes to allow bootstrapping from zip files

I hope I didn't break the Windows build (or anything else for that
matter), but then again, it's been sitting on sf long enough...

Regarding the latest discussions on python-dev: zipimport sets
pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as
/path/to/Archive.zip/subdir/ are supported again.
2002-12-30 22:08:05 +00:00
Tim Peters d1f5ccc75d Taught the Windows build about _randommodule.c. This is compiled
into the core DLL, since it's not much code and lots of stuff uses
it (e.g., try getting a tempfile name without it).
2002-12-29 23:46:40 +00:00
Martin v. Löwis 9c36c29156 Use wcscoll for _locale.strcoll if available. 2002-12-21 18:34:06 +00:00
Thomas Heller e1d18f52c3 Fix an error message in the _winreg module. The error message referred
to a constant in the 'win32con' module, but this constant is also
defined in the _winreg module itself.

Bugfix candidate.
2002-12-20 20:13:35 +00:00
Tim Peters 2a799bf77a datetime escapes the sandbox. The Windows build is all set. I leave it
to others to argue about how to build it on other platforms (on Windows
it's in its own DLL).
2002-12-16 20:18:38 +00:00
Andrew MacIntyre 7e5bf674b8 history update 2002-12-04 12:40:49 +00:00
Andrew MacIntyre e7a8cad069 make BSDDB 1.85 module buildable again after BSDDB3 module import 2002-12-04 12:37:17 +00:00
Thomas Heller b0cd38c985 Oops, MSVC was still open, so the project file was not yet saved. 2002-11-22 20:43:30 +00:00
Thomas Heller bb4b7d2d68 Copied the sources from the distutils CVS repository.
Changed the MSVC project file to create the exe in the
lib/distutils/command directory, bdist_wininst.py must still be
changed to use it.

Also changed to use the same zlib as the zlib module - this has the nice
sideeffect that now the buggy 1.1.3 version is no longer used.

Most of the source files now conform to PEP 7, except for the maximum
line length.  Windows api programming in 78 character lines =:(.

README.txt is a new file, but still empty except for placeholders.
2002-11-22 20:39:33 +00:00
Tim Peters c7ff90bbbb Forgot a paren in the MSVC + 64-bit + Intel case. 2002-11-11 20:21:06 +00:00
Tim Peters 062843354f Some help for SF 614770: MSVC 7.0 compiler support
This changes sys.version under Microsoft builds to include the MS compiler
version number (_MSC_VER).  Since VC 6 and VC 7 are apparently
incompatible, and both can be installed on a single box, distutils needs
some way to figure out which version of MSVC a given Python was compiled
under.

As also suggested by MvL, got rid of #ifdef'ery for the defunct _M_ALPHA
target.

Bugfix candidate?  Hard to say.  As far as I'm concerned, VC 7 wasn't
a supported platform in the 2.2 line.  If somebody thinks it should be,
they can do the work.
2002-11-11 19:44:39 +00:00
Tim Peters b0ead4ea4a Start building the bz2 module on Windows.
CAUTION:  The Python test still has many failures, but I'm out of time
for this now (already took much longer than hoped to get this far).
The base bz2 library does pass its own tests (see next).

CAUTION:  People building on Windows have to download and build tne
bz2 compression libraries now.  See PCbuild\readme.txt for complete
instructions.
2002-11-09 04:48:58 +00:00
Tim Peters c78462fb94 The MS resource compiler simply cannot be convinced to do arithmetic
correctly.  So field3.py is a Python program that can.  This injects
another manual step into the Python release process for Windows; so
it goes.
2002-10-11 18:25:52 +00:00
Tim Peters ce2f663c48 Repair the DLL name -- this has to match the major.minor version numbers. 2002-10-11 17:51:44 +00:00
Mark Hammond c2e85bd4e2 Patch 594001: PEP 277 - Unicode file name support for Windows NT. 2002-10-03 05:10:39 +00:00
Guido van Rossum e3a8e7ed1d Call me anal, but there was a particular phrase that was speading to
comments everywhere that bugged me: /* Foo is inlined */ instead of
/* Inline Foo */.  Somehow the "is inlined" phrase always confused me
for half a second (thinking, "No it isn't" until I added the missing
"here").  The new phrase is hopefully unambiguous.
2002-08-19 19:26:42 +00:00
Andrew MacIntyre 1adbcebbec update contact info 2002-08-18 06:32:46 +00:00
Andrew MacIntyre 1994c7f1cf Prep for 2.3:
- update DLL version number
 - add files required for 2.3 (no changes to modules though)
 - restructure build of pgen.exe

NOTE:  As I don't have the VACPP compiler, these changes are untested.
Apart from slightly re-ordering some file lists, and matching file name
casing, I believe these changes are the minimum necessary to build 2.3
with VACPP.
2002-08-18 06:31:01 +00:00
Andrew MacIntyre ffcf899554 make port notes current 2002-08-18 06:28:21 +00:00
Andrew MacIntyre 4fffdff2be Build process updates:
- the security fixes to tempfile have lead to test_tempfile wanting
   to create 100 temporary files.  as the EMX default is only 40,
   the number of file handles has been bumped (up to 250).
 - changes to pgen have required restructuring its build support.
2002-08-18 06:26:33 +00:00
Mark Hammond fe51c6d66e Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype
for Py_Main().

Thanks to Kalle Svensson and Skip Montanaro for the patches.
2002-08-02 02:27:13 +00:00
Mark Hammond 2795dae20d Remove a strange single quote that didn't seem to upset the compilers! 2002-07-22 13:28:21 +00:00
Mark Hammond e407e2ac42 Nuke the only DL_* in this directory. 2002-07-22 13:26:41 +00:00
Mark Hammond 8235ea1c3a Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT. 2002-07-19 06:55:41 +00:00
Tim Peters 02488ff173 Windows has no actual need for BAD_STATIC_FORWARD, so got rid of it. 2002-07-17 15:32:40 +00:00