summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Added 'output_dir' parameter to 'compile()' and 'link_shared_object().Greg Ward1999-09-131-22/+83
| | | | | | Changed those two methods to only compile/link if necessary (according to simplistic timestamp checks). Added 'output_dir' to 'object_filenames()' and 'shared_object_filename()'.
* New command -- install_ext to install extension modules.Greg Ward1999-09-131-0/+38
|
* Added 'newer_pairwise()' and 'newer_group()'.Greg Ward1999-09-131-16/+133
| | | | | | Terminology change in 'newer()'. Made 'copy_tree' respect dry_run flag a little better. Added 'move_file()'.
* Added 'output_dir' attribute, and 'output_dir' parameter to several methodGreg Ward1999-09-131-6/+33
| | | | | | signatures, and updated some docstrings to reflect it. Some comments added. Added 'announce()' and 'move_file()' methods.
* Fixed some goofs in 'alias_options'.Greg Ward1999-09-131-2/+15
| | | | | | Error message tweak in Command.set_option(). Added Command.get_peer_option(). Added Command.move_file() wrapper.
* Message.__delitem__(): If the key doesn't exist in the dictionary,Fred Drake1999-09-101-5/+5
| | | | raise KeyError instead of failing silently!
* Fix for PR#74 -- use int() instead of eval() to extract the exponent.Guido van Rossum1999-09-101-1/+1
|
* canonic(): This used to be equivalent to str() but that caused tooBarry Warsaw1999-09-091-6/+9
| | | | | | | much breakage (esp. in JPython which holds absolute path names in co_filename already). This implementation uses os.path.abspath() as a slightly better way to canonicalize path names. It implements a cache.
* Pdb.lineinfo(): Don't use os.popen('egrep ...') to find the line inBarry Warsaw1999-09-091-8/+23
| | | | | | the file that a function is defined on. Non-portable to Windows and JPython. Instead, new find_function() uses re module on a similar (simple-minded) pattern.
* Make the maxsize constructor argument default to 0 (an unlimited queue size).Guido van Rossum1999-09-091-1/+1
|
* Changed to reflect the new "command options" regime -- in particular,Greg Ward1999-09-082-14/+22
| | | | | we no longer explicitly pull distribution options out of our Distribution object, but rather let the Distribution put them into the command object.
* Careful rethink of command options, distribution options, distributionGreg Ward1999-09-081-26/+108
| | | | | | | | | | | | | | | attributes, etc. Biggest change was to the Distribution constructor -- it now looks for an 'options' attribute, which contains values (options) that are explicitly farmed out to the commands. Also, certain options supplied to Distribution (ie. in the 'setup()' call in setup.py) are now "command option aliases", meaning they are dropped right into a certain command rather than being distribution options. This is handled by a new Distribution class attribute, 'alias_options'. Various comment changes to reflect the new way-of-thinking. Added 'get_command_name()' method to Command -- was assuming its existence all along as 'command_name()', so changed the code that needs it to call 'get_command_name()'.
* Ditched redundant docstrings and comments (overlap with ccompiler.py).Greg Ward1999-09-081-111/+20
| | | | | | | Ditched redundant '_gen_preprocess_options()' and '_gen_lib_options()' -- now provided by ccompiler.py. Fixed some filename extension variables -- added missing period. Cosmetic tweaks.
* Ditched '_gen_preprocess_options()' and '_gen_lib_options()' -- they'reGreg Ward1999-09-081-68/+8
| | | | | | now provided (minus the leading underscore) by the ccompiler module. Fix 'compile()' to return the list of object files generated. Cosmetic tweaks/delete cruft.
* os.name is "posix" or "nt" or we don't care.Greg Ward1999-09-081-1/+97
| | | | | | | | Added big comment about the kludginess of passing 'build_options' to the link methods and how to fix it. Added 'gen_preprocess_options()' and 'gen_lib_options()' convenience functions -- the two cases are very similar for Unix C Compilers and VC++, so I figured I might as well unify the implementations.
* [from 1999/08/28]Greg Ward1999-09-081-2/+2
| | | | | Apparently os.name is "nt" or "posix" or we don't care. Cosmetic tweaks.
* Fixed 'return EOFError' that should be 'raise EOFError', caught byAndrew M. Kuchling1999-09-061-1/+1
| | | | Skip Montanaro's return-value patches.
* Correct typo in AddressList.__getitem__. By Moshe Zadka.Guido van Rossum1999-09-031-1/+1
|
* Fix indent error in __format(): del context[objid] at the end shouldGuido van Rossum1999-09-021-1/+2
| | | | | be executed in all cases, not just when it's not a list, tuple or dict. Discovered by Christian Tismer.
* Patch from Perry Stoll: caught up with changes in CCompiler necessary (?)Greg Ward1999-08-291-8/+21
| | | | for MSVCCompiler.
* Patch from Perry Stoll: tweaks to Windows support.Greg Ward1999-08-291-1/+6
|
* Patch from Perry Stoll: support for Windows.Greg Ward1999-08-291-10/+29
|
* Patch from Perry Stoll: import types module.Greg Ward1999-08-291-0/+1
|
* Patch from Perry Stoll: typo fix, make sure we only compile .py files.Greg Ward1999-08-292-12/+18
|
* Patch from Perry Stoll: OK for list of modules to be empty.Greg Ward1999-08-291-0/+4
|
* Patch from Perry Stoll: pass 'build_info' to link method.Greg Ward1999-08-291-2/+1
|
* Patch from Perry Stoll:Greg Ward1999-08-291-6/+19
| | | | | | | - fix some broken abstract methods - kludge: add 'build_info' parameter to link methods - add 'object_name()' and 'shared_library_name()' - support for MSVCCompiler class on NT/Win95
* Added msvccompiler module exactly as supplied by Perry Stoll.Greg Ward1999-08-291-0/+317
|
* Sjoerd Mullender writes:Guido van Rossum1999-08-261-30/+48
| | | | | | | | | | | """ Added some optional arguments to the XMLParser __init__ method to specify that selected non-standard constructs are to be accepted. Also removed the documentation for handle_entityrefs since it isn't used. """ The version is incremented to 0.3.
* Sjoerd Mullender writes:Guido van Rossum1999-08-263-147/+50
| | | | | | | | | | | | | | | | | | | | | | """ Extended chunk so that it can also handle formats that are almost according to EA IFF 85. In particular, added options to handle little-endian and to handle formats that include the header size in the chunk size value. Fixed a bug where the header size was included in the chunk size, which it isn't according to EA IFF 85. Added a new method getsize() to get the size of the chunk (excluding header). Fixed chunk documentation (TIFF doesn't look like it uses chunks). Converted wave to use chunk. Wave uses EA IFF 85 chunks except that it uses little-endian encoding of integer data. Removed __del__ methods from aifc and wave since I got an AttributeError there upon exit. """
* Add calls to self.protocol("WM_DELETE_WINDOW", self.destroy) to the TkGuido van Rossum1999-08-201-0/+2
| | | | | | | | and Toplevel class constructors. This means that if the window manager closes the window, the Python-side Tkinter data structures will be destroyed correctly. (Most apps do this anyway, and it's recommended practice; I see no reason why making it the default behavior could be bad.)
* A nit to make Fred proud.Barry Warsaw1999-08-191-0/+1
|
* Oops, call 'os.path.join()'!Greg Ward1999-08-191-1/+1
|
* New version by Mark-Andre Lemburg (generated by a script, parseentities.py).Guido van Rossum1999-08-191-103/+253
|
* Patches by Michael Reilly to correctly deal with ftp URLs of the formGuido van Rossum1999-08-181-0/+2
| | | | | ftp://user@host//root/path: the double slash in the pathname means to go to the root directory even if the initial directory isn't the root.
* Typo in comment (on Mac, it's the *resource* fork that's not copied,Guido van Rossum1999-08-181-1/+1
| | | | the data fork *is* copied).
* Patches by Michael Reilly to correctly deal with ftp URLs of the formGuido van Rossum1999-08-181-0/+1
| | | | | ftp://user@host//root/path: the double slash in the pathname means to go to the root directory even if the initial directory isn't the root.
* Add Tim Peters' shuffle() algorithm.Guido van Rossum1999-08-181-0/+21
|
* Implements the 'build_ext' command for building C/C++ extension modules.Greg Ward1999-08-141-0/+192
|
* Module to spawn sub-commands in a platform-independent way.Greg Ward1999-08-141-0/+106
| | | | Initial revision only includes support for POSIX-style fork-and-exec.
* Changed to use 'spawn()', now that it exists.Greg Ward1999-08-141-24/+62
| | | | | | | | Added 'verbose' and 'dry_run' parameters to constructor. Changed 'compile()', 'link_*()' to default lists arguments to None rather than empty list. Added implementations of the filename-mangling methods mandated by the CCompiler interface.
* Added 'verbose' and 'dry_run' flags to CCompiler constructor andGreg Ward1999-08-141-15/+64
| | | | | | | | | | | 'new_compiler()' factory function. Added 'runtime_library_dirs' list (for -R linker option) and methods to manipulate it. Deleted some obsolete comments. Added all the filename manglign methods: 'object_filenames()', 'shared_object_filename()', 'library_filename()', 'shared_library_filename()'. Added 'spawn()' method (front end to the "real" spawn).
* Comment tweak.Greg Ward1999-08-141-5/+5
|
* Better detection of bad entries in option table.Greg Ward1999-08-141-3/+11
| | | | Better error messages for bad entries in option table.
* Added DistutilsExecError, DistutilsValueError.Greg Ward1999-08-141-1/+13
|
* Patch by Paul Sokolovsky to support the get() method.Guido van Rossum1999-08-111-0/+5
|
* Allow comment characters (#) to be escaped:Greg Ward1999-08-101-14/+37
| | | | | | | - did away with 'comment_re' option -- it's just not that simple anymore - heavily revised the main logic in 'readline()' to accomodate this Beefed up 'warn()': 'line' can be list or tuple, and 'msg' is automatically converted to a string.
* Added __del__ method to GzipFile class that will flush and close theAndrew M. Kuchling1999-08-101-0/+5
| | | | object, if required.
* Mark Hammond writes:Guido van Rossum1999-07-301-1/+3
| | | | | | | | | | | | | | | | """ If the filename being complained about contains a space, enclose the file-name in quotes. The reason is simply that when I try and parse tabnanny's output, filenames with spaces make it very difficult to determine where the filename stops and the linenumber begins! """ Tim approves. I slightly changed the patch (use 'in' instead of string.find()) and arbitrarily bumped the __version__ variable up to 6.
* Remove some redundant code from Canvas.tag_bind(), which added allGuido van Rossum1999-07-301-11/+2
| | | | | | | | | | bindings to a dictionary _tagcommands which was otherwise unused. (This was checked in accidentally with rev. 1.125 and not deleted with rev. 1.127 when the other half of this code was removed -- although even as originally checked in the _tagcommands variable was never used.) (PR#40, reported by Peter Stoehr)