summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* There are a few places which can raise DistutilsPlatformError; makeFred Drake2000-03-091-41/+54
| | | | | | | | | | | sure it's imported! ;) Re-wrap the docstrings on get_python_inc() and get_python_lib() to be closer to the "normal" Python style. See GvR's "style guide" on the essays page (http://www.python.org/doc/essays/). There should never be a space between a function name and the '(' that opens the argument list (see the style guide again).
* Added Joe Van Andel's 'get_python_inc()', adapted by me to supplyGreg Ward2000-03-091-15/+80
| | | | | | | | | the platform-neutral include dir by default and with Mac support. Added 'get_python_lib()', inspired by 'get_python_inc()'. Rewrote 'get_config_h_filename()' and 'get_makefile_filename()' in terms of 'get_python_inc()' and 'get_python_lib()'. Changed '_init_nt()' and '_init_mac()' to use 'get_python_inc()' and 'get_python_lib()' for directory names.
* Add tests for char in string -- including required exceptions forGuido van Rossum2000-03-071-0/+23
| | | | non-char in string.
* Sjoerd Mullender:Guido van Rossum2000-03-071-1/+1
| | | | | The (relatively) new chunk module uses seek, not setpos. One instance of the call still needed to be fixed.
* Patch from Corran Webster <cwebster@nevada.edu> (tweaked for style by me):Greg Ward2000-03-071-0/+11
| | | | changed 'copy_file()' to use the native Mac file copy routine.
* Patch from Corran Webster <cwebster@nevada.edu>: add '_init_mac()'.Greg Ward2000-03-071-0/+22
|
* Added 'native_path()' for use on pathnames from the setup script: split onGreg Ward2000-03-071-0/+28
| | | | slashes, and put back together again using the local directory separator.
* Added '_nt_quote_args()' to deal with whitespace in command-line argumentsGreg Ward2000-03-071-5/+22
| | | | in a rather half-assed, but probably effective, way.
* test_contains outputGuido van Rossum2000-03-061-0/+1
|
* Test cases for __contains__ code, by Moshe Zadka.Guido van Rossum2000-03-061-0/+41
|
* Sjoerd Mullender:Guido van Rossum2000-03-061-15/+21
| | | | | | | When you set a breakpoint on a function with a multi-line argument list, the breakpoint is actually set on the second line of the arguments instead of the first line of the body. This patch fixes that.
* import compile function form pycodegenJeremy Hylton2000-03-061-0/+4
|
* rename compile.py to pycodegen.pyJeremy Hylton2000-03-061-176/+25
| | | | | | | | | | fix imports remove parse functions and visitor code track name change: Classdef to Class add some comments and tweak order of visitXXX methods get rid of if __name__ == "__main__ section
* add a doc stringJeremy Hylton2000-03-061-0/+20
| | | | import some useful functions from contained modules
* fix import to refer to compiler packageJeremy Hylton2000-03-061-1/+1
|
* revise arguments for addCode method on lnotab. take several numbersJeremy Hylton2000-03-061-10/+13
| | | | that are internally converted to chars, rather than taking a string.
* change node Classdef to ClassJeremy Hylton2000-03-062-24/+25
| | | | | | | add doc string to transformer module add two helper functions: parse(buf) -> AST parseFile(path) -> AST
* factor out the tree walking/visitor code that was in compile.pyJeremy Hylton2000-03-061-0/+127
|
* Rewrote 'newer_pairwise(): more natural (and incompatible) interface,Greg Ward2000-03-061-12/+13
| | | | simpler implementation.
* Serious overhaul of the C compiler interface and the two classes thatGreg Ward2000-03-063-362/+400
| | | | | | | | | | | | implement it (so far): * moved filename generation methods into CCompiler base class, driven by data supplied by implementation classes * moved a bunch of common code from UnixCCompiler to convenience methods in CCompiler * overhauled MSVCCompiler's compile/link methods to look and act as much as possible like UnixCCompiler's, in order to regularize both interface and behaviour (especially by using those new convenience methods)
* Don't pass 'keep_dir' to 'compile()' method of CCompiler -- no longer used.Greg Ward2000-03-061-1/+0
|
* Don't pass 'keep_dir' to 'compile()' method of CCompiler -- no longer used.Greg Ward2000-03-061-3/+4
| | | | | Don't assume that the 'libraries' and 'library_dirs' elements of the build info dict are always lists.
* allow comments beginning with ; in key: value as well as key = valueJeremy Hylton2000-03-031-1/+1
|
* Typo fix.Greg Ward2000-03-031-1/+1
|
* Fixed 'mkpath()' to accept empty string silently (it's just the current dir).Greg Ward2000-03-031-9/+11
| | | | Fixed all DistutilsFileError messages to wrap file/dir names in quotes.
* Renamed 'build_lib' command to 'build_clib':Greg Ward2000-03-024-209/+7
| | | | | | * replaced build_lib.py with build_clib.py * renamed the class in build_clib.py * changed all references to 'build_lib' command in other command classes
* Changed '__rcsid__' to '__revision__'.Greg Ward2000-03-0220-20/+20
|
* If the "build_lib" command built any C libraries, link with them allGreg Ward2000-03-021-3/+12
| | | | | | | when building extensions (uses build_lib's 'get_library_names()' method). Ensure that the relative structure of source filenames is preserved in the temporary build tree, eg. foo/bar.c compiles to build/temp.<plat>/foo/bar.o.
* Added command description.Greg Ward2000-03-022-28/+96
| | | | | | | | | | | | Added 'build_clib' and 'build_temp' options (where to put C libraries and where to put temporary compiler by-products, ie. object files). Moved the call to 'check_library_list()' from 'run()' to 'finalize_options()' -- that way, if we're going to crash we do so earlier, and we guarantee that the library list is valid before we do anything (not just run). Disallow directory separators in library names -- the compiled library always goes right in 'build_clib'. Added 'get_library_names()', so the "build_ext" command knows what libraries to link every extension with.
* In the 'compile()' method: preserve the directory portion of sourceGreg Ward2000-03-021-2/+7
| | | | | | filenames when constructing object filenames, even if output_dir given -- eg. "foo/bar.c" will compile to "foo/bar.o" without an output_dir, and to "temp/foo/bar.o" if output_dir is "temp".
* In compile/link methods: ensure that the directory we expect to be writing toGreg Ward2000-03-011-1/+6
| | | | exists before calling the compiler/linker.
* Added 'mkpath()' method: convenience wrapper around 'util.mkpath()' that addsGreg Ward2000-03-011-1/+4
| | | | the compiler objects 'verbose' and 'dry_run' flags.
* Added call to 'ensure_ready()' on the command object inGreg Ward2000-03-011-0/+1
| | | | 'Distribution.find_command_obj()'.
* Added 'get_platform()' to construct a string that identifies the currentGreg Ward2000-03-011-1/+19
| | | | platform, using 'os.uname()' or 'sys.platform'.
* Build reorg:Greg Ward2000-03-011-16/+41
| | | | | | | | | | | | | | * 'build_dir' -> 'build_lib', which by default takes its value straight from 'build_lib' in the 'build' command * added 'build_temp' and 'inplace' options * change 'build_extensions()' to put object files (compiler turds) in 'build_temp' dir * complicated the name-of-extension-file shenanigans in 'build_extensions()' to support "in-place" extension building, i.e. put the extension right into the source tree (handy for developers) * added 'get_ext_fullname()', renamed 'extension_filename()' to 'get_ext_filename()', and tweaked the latter a bit -- all to support the new filename shenanigans
* Build reorg:Greg Ward2000-03-011-12/+43
| | | | | | * 'build_lib' -> 'build_purelib' * new 'build_lib' and 'build_temp' options * use 'get_platform()' to initialize 'build_platlib' and 'build_temp'
* Build reorg: change 'build_dir' option to 'build_lib'.Greg Ward2000-03-011-8/+8
|
* Remove some redundant logic from walk() -- there's no need to checkGuido van Rossum2000-02-291-2/+0
| | | | for "." and "..", since listdir() no longer returns those.
* Fix a typo in a commentAndrew M. Kuchling2000-02-291-1/+1
|
* Fix comments relating to the specific regexs used to parse section andFred Drake2000-02-281-2/+2
| | | | option names; errors noted by Greg Stein <gstein@lyra.org>.
* Patch by Piers Lauder, who writes:Guido van Rossum2000-02-281-5/+6
| | | | | | | | This patch is re: Lucas.Dejonge@awtpl.com.au: [Python-bugs-list] imaplib - not complying with RFC (PR#218) Lucas de Jonge reported that the code in imaplib that detects a read-write to read-only change doesn't comply with RFC 2060.
* (Finally!) Changes related to the ConfigParser/INI-file topicsFred Drake2000-02-281-5/+11
| | | | | | | discussed on c.l.py last January. Specifically: - more characters allowed in section & option names - if '=' is used to separate the option & value, the value can be followed by a comment of the form '\s;'
* Simple changes by Gerrit Holl - move author acknowledgements out ofGuido van Rossum2000-02-289-43/+46
| | | | docstrings into comments.
* Patch by Gerrit Holl to avoid doing two stat() calls in a row in walk().Guido van Rossum2000-02-281-1/+2
|
* Fix a typo in Barry's checkin.Guido van Rossum2000-02-271-1/+1
| | | | Reported both by Gerrit Holl and Mark Favas.
* Fixed a multi-arg append() call, discovered by Mark Favas.Guido van Rossum2000-02-271-4/+4
| | | | Also removed some unnecessary backslases (inside parens).
* Try to deal with pre-1.5.2 IOError exception objects.Greg Ward2000-02-261-2/+6
|
* Unfinished, untested implementation of the lovely baroque installation schemeGreg Ward2000-02-264-183/+118
| | | | | cooked up by Fred Drake and me. Only saved for posterity (whoever posterity is), as it is about to be ditched in favour of GvR's much simpler design.
* Changes inspired by Randall Hooper to allow callbacks when anBarry Warsaw2000-02-251-4/+15
| | | | | | | | | | | | | | | OptionMenu is modified. Somewhat rewritten and elaborated by myself. class _setit: The constructor now takes an optional argument `callback' and stashes this in a private variable. If set, the __call__() method will invoke this callback after the variable's value has changed. It will pass the callback the value, followed by any args passed to __call__(). class OptionMenu: The constructor now takes keyword arguments, the only one that's legally recognized is `command', which can be set to a callback. This callback is invoked when the OptionMenu value is set. Any other keyword argument throws a TclError.
* Test case for fork1() behavior.Guido van Rossum2000-02-252-0/+55
| | | | Only the main thread should survive in the child after a fork().