summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Ditched the unused 'list_only' option.Greg Ward2000-04-091-3/+4
| | | | | | Added code to include source files from 'build_clib' command to default file list -- currently this won't work, since 'build_clib' doesn't have a 'get_source_files()' method!
* Catch DistutilsFileError in addition to DistutilsExecError in 'setup()'.Greg Ward2000-04-091-1/+1
|
* Added (currently) pointless and trivial main body (for future tests).Greg Ward2000-04-091-0/+4
|
* This little note is to clarify things for people who go poking around theGreg Ward2000-04-091-0/+18
| | | | Python library hoping to find out more about the Distutils.
* Fred Gansevles <gansevle@cs.utwente.nl>:Fred Drake2000-04-071-1/+1
| | | | | The copytree function doesn't pass the symlinks parameter in recursicve calls
* Add missing import of 'usage' string.Greg Ward2000-04-061-2/+2
|
* Marc-Andre's third try at this bulk patch seems to work (except thatGuido van Rossum2000-04-056-46/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | his copy of test_contains.py seems to be broken -- the lines he deleted were already absent). Checkin messages: New Unicode support for int(), float(), complex() and long(). - new APIs PyInt_FromUnicode() and PyLong_FromUnicode() - added support for Unicode to PyFloat_FromString() - new encoding API PyUnicode_EncodeDecimal() which converts Unicode to a decimal char* string (used in the above new APIs) - shortcuts for calls like int(<int object>) and float(<float obj>) - tests for all of the above Unicode compares and contains checks: - comparing Unicode and non-string types now works; TypeErrors are masked, all other errors such as ValueError during Unicode coercion are passed through (note that PyUnicode_Compare does not implement the masking -- PyObject_Compare does this) - contains now works for non-string types too; TypeErrors are masked and 0 returned; all other errors are passed through Better testing support for the standard codecs. Misc minor enhancements, such as an alias dbcs for the mbcs codec. Changes: - PyLong_FromString() now applies the same error checks as does PyInt_FromString(): trailing garbage is reported as error and not longer silently ignored. The only characters which may be trailing the digits are 'L' and 'l' -- these are still silently ignored. - string.ato?() now directly interface to int(), long() and float(). The error strings are now a little different, but the type still remains the same. These functions are now ready to get declared obsolete ;-) - PyNumber_Int() now also does a check for embedded NULL chars in the input string; PyNumber_Long() already did this (and still does) Followed by: Looks like I've gone a step too far there... (and test_contains.py seem to have a bug too). I've changed back to reporting all errors in PyUnicode_Contains() and added a few more test cases to test_contains.py (plus corrected the join() NameError).
* Mark Hammond:Fred Drake2000-04-051-0/+2
| | | | | | This patch fixes the mmap module on Windows 9x. Also updates the mmap test to remove the test file.
* Work the Tcl version number in the path we search for.Guido van Rossum2000-04-041-2/+3
|
* Skip Montanaro submits a simple patch that makes encode() and decode()Guido van Rossum2000-04-041-0/+4
| | | | recognize the '7bit' and '8bit' encodings, to simplify use.
* Patch by Fred Gansevles.Guido van Rossum2000-04-041-9/+15
| | | | | | | | | | | This patch solves 2 problems of the os module. 1) Bug ID #50 (case-mismatch wiht "environ.get(..,..)" and "del environ[..]") 2) os.environ.update (dict) doesn't propagate changes to the 'real' environment (i.e doesn't call putenv) This patches also has minor changes specific for 1.6a The string module isn't used anymore, instead the strings own methods are used.
* Since Thomas Wouters kept complaining that he wants access to the theGuido van Rossum2000-04-041-0/+3
| | | | | | | | Unix From lines, change the UnixMailbox class so that _search_start() positions the file *before* the Unix From line instead of after it; change _search_end() to skip one line before looking for the next From line. The rfc822.Message class automatically recognizes these Unix From lines and squirrels them away in the 'unixfrom' instance variable.
* Reorganization: ripped util.py to shreds, creating in the process:Greg Ward2000-04-045-664/+719
| | | | | | | | | - file_util.py: operations on single files - dir_util.py: operations on whole directories or directory trees - dep_util.py: simple timestamp-based dependency analysis - archive_util.py: creation of archive (tar, zip, ...) files The functions left in util.py are miscellany that don't fit in any of the new files.
* Reorganization: moved the Distribution class from core.py to dist.py, andGreg Ward2000-04-043-933/+963
| | | | | | the Command class from core.py to cmd.py. No other code needs changing though; distutils.core still provides the Command and Distribution classes, although indirectly now.
* UserString class from Peter Funk <pf@artcom-gmbh.de>.Fred Drake2000-04-033-0/+386
|
* This patch looks large, but it just deletes the ^M characters andAndrew M. Kuchling2000-04-023-482/+482
| | | | untabifies the files. No actual code changes were made.
* Untabified file to fix problems reported by tabnannyAndrew M. Kuchling2000-04-021-17/+17
|
* Mark Hammond: Uncomment call to delete test data when done.Fred Drake2000-04-011-1/+1
|
* Add a README file so that cvs update -P doesn't obliterate thisGuido van Rossum2000-03-311-0/+2
| | | | directory, and so that people have a clue as to why it exists.
* Fixed my simplification to Thomas' patch: winreg and win32api export the sameGreg Ward2000-03-311-8/+13
| | | | functions, but with different names.
* Zip file handling module, by Jim Ahlstrom.Guido van Rossum2000-03-311-0/+470
|
* Marc-Andre Lemburg: Error reporting in the codec registry and lookupGuido van Rossum2000-03-311-1/+5
| | | | mechanism is enhanced to be more informative.
* Marc-Andre Lemburg: use all lowercase names.Guido van Rossum2000-03-311-8/+8
|
* Simplified Thomas Heller's registry patch: just assign all thoseGreg Ward2000-03-311-32/+32
| | | | | | | | HKEY_* and Reg* names once, rather than having near-duplicate code in the two import attempts. Also dropped the leading underscore on all the imported symbols, as it's not appropriate (they're not local to this module).
* Patch from Thomas Heller: use the new winreg module if available.Greg Ward2000-03-311-24/+47
|
* Added test case output for pyexpat moduleAndrew M. Kuchling2000-03-311-0/+31
|
* Added test case for pyexpat module that tries to exercise all the handlersAndrew M. Kuchling2000-03-311-0/+107
|
* Added Fredrik Lundh's sre module and its supporting cast.Guido van Rossum2000-03-314-0/+856
| | | | NOTE: THIS IS VERY ROUGH ALPHA CODE!
* Added code to blow away the pseudo-installation tree and a 'keep_tree'Greg Ward2000-03-311-1/+10
| | | | option to disable this (by default, it's false and we clean up).
* Oops, got a little too enthusiastic deleting code in that last revision:Greg Ward2000-03-311-0/+1
| | | | we still have to *run* the sub-command that creates a built distribution.
* Fixed 'make_archive()' to explicitly turn of compression when format is "tar".Greg Ward2000-03-311-0/+1
|
* Rename 'formats' option to 'format', and remove the ability to generateGreg Ward2000-03-311-20/+16
| | | | | multiple built distributions in one run -- it seemed a bit dodgy and I'd rather remove it than try to beat it into submission right now.
* Import from 'types' module.Greg Ward2000-03-311-0/+3
| | | | Added 'ztar', 'tar' to 'format_command' dictionary.
* Tweaked 'get_platform()' to include the first character of the OS release:Greg Ward2000-03-311-4/+2
| | | | eg. sunos5, linux2, irix5.
* Removed some old test code: don't set 'plat' when calling 'new_compiler()'.Greg Ward2000-03-311-2/+1
|
* Don't perpetrate the "_d" hack for naming debugging extensions -- that'sGreg Ward2000-03-311-4/+0
| | | | now done in the 'build_ext' command.
* Patch (mostly) from Thomas Heller for building on Windows:Greg Ward2000-03-311-11/+36
| | | | | | | | | * build to "Debug" or "Release" temp directory * put linker turds (.lib and .exp files) in the build temp directory * tack on "_d" to extensions built with debugging * added 'get_ext_libname()' help in putting linker turds to temp dir Also, moved the code that simplifies None to empty list for a bunch of options to 'finalize_options()' instead of 'run()'.
* Don't put Python's library directory into the library search path -- that'sGreg Ward2000-03-311-3/+0
| | | | specific to building Python extensions.
* Added 'bdist' and 'bdist_dumb'.Greg Ward2000-03-311-0/+2
|
* A version of FixTk.py that works with the way the installer nowGuido van Rossum2000-03-311-64/+4
| | | | installs Tcl/Tk.
* Added 'get_name()' and 'get_full_name()' methods to Distribution.Greg Ward2000-03-311-2/+16
| | | | | | | | Simplified 'Command.get_peer_option()' a tad -- just call 'find_peer()' to get the peer command object. Updated 'Command.copy_file()' to take a 'link' parameter, just like 'util.copy_file()' does now. Added 'Command.make_archive()' to wrap 'util.make_archive()'.
* Added 'create_tree()'.Greg Ward2000-03-311-25/+135
| | | | | | | | | | | Changes to 'copy_file()': * added support for making hard links and symlinks * noted that it silently clobbers existing files when copying, but blows up if destination exists when linking -- hmmm... * error message tweak Added 'base_name' parameter to 'make_tarball()' and 'make_zipfile()'. Added 'make_archive()' -- wrapper around 'make_tarball()' or 'make_zipfile()' to take care of the archive "root directory".
* Added DistutilsInternalError.Greg Ward2000-03-311-0/+6
|
* The 'bdist_dumb' command, the first worker bee for use by 'bdist'. This isGreg Ward2000-03-311-0/+131
| | | | | | the command that actually creates "dumb" binary distributions, ie. tarballs and zip files that you just unpack under <prefix> or <exec-prefix>. Very limited, but it's a start.
* The 'bdist' command, for creating "built" (binary) distributions.Greg Ward2000-03-311-0/+70
| | | | | | | Initial revision is pretty limited; it only knows how to generate "dumb" binary distributions, i.e. a tarball on Unix and a zip file on Windows. Also, due to limitations in the installation code, it only knows how to distribute Python library code. But hey, it's a start.
* Added 'get_inputs()'.Greg Ward2000-03-311-0/+20
|
* Fixed 'get_outputs()' so it actually works.Greg Ward2000-03-311-4/+16
| | | | | Added 'get_inputs()' (which is strikingly similar to 'get_outputs()' - sigh). Cosmetic tweaks.
* Changed to use the new 'has_pure_modules()' and 'has_ext_modules()' methodsGreg Ward2000-03-311-52/+19
| | | | | | | | | | | | | | | provided by Distribution. Cosmetic and error message tweaks. Simplified 'make_release_tree()': * extracted 'distutils.util.create_tree()' * don't have to do hard-linking ourselves -- it's now handled by 'distutils.util.copy_file()' (although the detection of whether hard linking is available still needs to be factored out) Removed 'make_tarball()' and 'make_zipfile()' entirely -- their role is now amply filled by 'distutils.util.make_archive()'. Simplified 'make_distribution()': * use Distribution's new 'get_full_name()' method * use 'make_archive()' instead of if/elif/.../else on the archive format
* Mark Hammond: Ooops - even though Win32 handles the same args, thereGuido van Rossum2000-03-311-4/+1
| | | | was a superfluous check for the platform.
* Improved test, by Mark Hammond, for Win32.Guido van Rossum2000-03-311-11/+10
|