summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Added 'runtime_library_dirs' parameter to 'link_*()' methods, and changed toGreg Ward2000-03-261-9/+13
| | | | | | use it when linking. Call '_fix_object_args()' and/or '_fix_lib_args()' as appropriate, rather than just '_fix_link_args()'.
* Added 'runtime_library_dirs' parameter to 'link_*()' methods.Greg Ward2000-03-261-28/+43
| | | | | | Split '_fix_link_args()' up into '_fix_object_args()' (for use of 'create_static_lib() and link methods) and '_fix_lib_args()' (for the link methods only).
* Marc-Andre Lemburg:Guido van Rossum2000-03-243-2/+31
| | | | | | | | | | Attached you find the latest update of the Unicode implementation. The patch is against the current CVS version. It includes the fix I posted yesterday for the core dump problem in codecs.c (was introduced by my previous patch set -- sorry), adds more tests for the codecs and two new parser markers "es" and "es#".
* Fix the test so that connect() and bind() are called with a singleGuido van Rossum2000-03-241-2/+2
| | | | | | argument: a (host, port) tuple. Like multi-arg append(), multi-arg connect() and bind() may be ruled out!
* Regenerated with test for 'contains'.Guido van Rossum2000-03-241-0/+1
|
* Import fix.Greg Ward2000-03-231-1/+1
|
* Fixed '_nt_quote_args()': backwards logic reversed, and now it actuallyGreg Ward2000-03-231-2/+2
| | | | returns a value.
* Fixed the class name.Greg Ward2000-03-231-1/+1
|
* Revised tons of comments to reflect the current state of affairs better.Greg Ward2000-03-221-72/+39
| | | | Deleted some crufty code.
* Run 'install_lib' instead of 'install_py', and ditch 'install_ext'Greg Ward2000-03-221-13/+4
| | | | completely (was already commented-out).
* Renamed install_py.py to install_lib.py, since it now handles installing allGreg Ward2000-03-221-76/+0
| | | | Python modules, pure and extensions.
* Obsolete command -- no longer relevant since we now build all modules, pureGreg Ward2000-03-221-43/+0
| | | | Python and extensions, into the same directory.
* Dropped the evil and misguided 'set_peer_option()' method -- it's noGreg Ward2000-03-221-20/+0
| | | | longer needed, and can't possibly work anyways.
* Dropped any notion of allowing the user to specify the build directories:Greg Ward2000-03-221-13/+10
| | | | | | | these must come from the 'build' command. This means we no longer need the misconceived 'set_peer_option()' method in Command and, more importantly, sweeps away a bunch of potential future complexity to handle this tricky case.
* Improved an error message in 'mkpath()'.Greg Ward2000-03-221-7/+47
| | | | | Tightened up some logic in 'native_path()'. Added 'subst_vars()' and '_check_environ()'.
* Renamed 'install_path' to 'extra_path'.Greg Ward2000-03-221-2/+6
| | | | | | | | Fix 'Command.set_undefined_option()' to call 'ensure_ready()' rather than 'finalize_options()' (which is only supposed to be called once, which is the whole point of 'ensure_ready()'). Added comment to 'set_peer_option()' to remind myself that this method cannot work and is fundamentally wrong-headed.
* Yet another complete rewrite. Hopefully the *last* complete rewrite ofGreg Ward2000-03-221-129/+299
| | | | | | | | | | | | this command for a while; this implements roughly the plan cooked up by Guido, Fred, and me. Seems to strike a nice balance between usability in the common cases (just set one option), expandability for more types of files to install in future, and customizability of installation directories. This revision isn't completely working: standard and alternate installations work fine, but there are still some kinks to work out of customized installations.
* Fix how we set 'build_dir' and 'install_dir' options from 'install' options --Greg Ward2000-03-221-2/+2
| | | | irrelevant because this file is about to go away, but oh well.
* Took out what looks like old debugging code that probably should neverGreg Ward2000-03-221-2/+1
| | | | | have been checked in: was passing the PLAT environment variable as the 'plat' argument to 'new_compiler()'.
* On 17-Mar-2000, Marc-Andre Lemburg said:Barry Warsaw2000-03-203-3/+5
| | | | | | | | | | | | | Attached you find an update of the Unicode implementation. The patch is against the current CVS version. I would appreciate if someone with CVS checkin permissions could check the changes in. The patch contains all bugs and patches sent this week and also fixes a leak in the codecs code and a bug in the free list code for Unicode objects (which only shows up when compiling Python with Py_DEBUG; thanks to MarkH for spotting this one).
* Simplified doc string.Greg Ward2000-03-181-11/+2
| | | | Added 'clean' to list of commands.
* Oops! Don't call 'ensure_ready()' in 'Distribution.find_command_obj()' --Greg Ward2000-03-181-2/+3
| | | | | | that broke parsing command-line options. Instead call it in 'Command.find_peer()', which is why I added it to 'find_command_obj()' in the first place.
* Tweaked all over:Greg Ward2000-03-181-9/+29
| | | | | | | | * improve help strings * warn if user supplies non-existing directories * don't try to 'remove_tree()' non-existing directories * try to remove the build_base after cleanup (but don't do or say anything if it fails -- this is just in case we made it empty)
* Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>:Greg Ward2000-03-181-16/+2
| | | | use 'util.remove_tree()' instead of 'nuke_release_tree()'.
* Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>: added 'remove_tree()'.Greg Ward2000-03-181-1/+20
|
* Contribution from Bastian Kleineidam <calvin@cs.uni-sb.de>:Greg Ward2000-03-181-0/+44
| | | | the Distutils 'clean' command.
* In 'finalize_options()': if 'self.libs' is a string, make it a singleton list.Greg Ward2000-03-181-0/+3
|
* Changed to pay attention to the 'runtime_library_dirs' list (= 'rpath'Greg Ward2000-03-183-4/+20
| | | | | | | | | | option in the 'build_ext' command): * in ccompiler.py: 'gen_lib_options()' now takes 'runtime_library_dirs' parameter * in unixccompiler.py and msvccompiler.py: now pass 'self.runtime_library_dirs' to 'gen_lib_options()', and define 'runtime_library_dir_option()' (although in msvccompiler.py it blows up with a DistutilsPlatformError right now!)
* Oops, another in the same file; I should read the mail fully beforeFred Drake2000-03-171-1/+1
| | | | | | | checking in; sorry! "the the" --> "the" (in docstring); noted by Detlef Lannert <lannert@lannert.rz.uni-duesseldorf.de>.
* "intput" --> "input" (in docstring); noted by Detlef LannertFred Drake2000-03-171-1/+1
| | | | <lannert@lannert.rz.uni-duesseldorf.de>.
* complete rewriteJeremy Hylton2000-03-162-800/+831
| | | | | | | | | code generator uses flowgraph as intermediate representation. the old rep uses a list with explicit "StackRefs" to indicate the target of jumps. pyassem converts flowgraph to bytecode, breaks up individual steps of generating bytecode
* simplify visitor walker classJeremy Hylton2000-03-161-32/+22
| | | | | | - remove postorder - remove protocol for automatically walking children based on visitor method return value; now only walks if there is no method
* fix list.append problemsJeremy Hylton2000-03-161-3/+3
|
* change name of Set method: items -> elements (avoids confusion withJeremy Hylton2000-03-161-1/+1
| | | | dict)
* Marc-Andre Lemburg: Add tests for mixed use of char in string.Guido van Rossum2000-03-131-0/+13
|
* Marc-Andre Lemburg: test script for Unicode implementation.Guido van Rossum2000-03-103-10/+338
|
* Marc-Andre Lemburg: the maxsplit argument for split() and replace()Guido van Rossum2000-03-101-4/+4
| | | | | now defaults to -1, not to 0. Passing an explicit zero doesn't split or replace at all.
* Module codecs -- Python Codec Registry, API and helpers. Written byGuido van Rossum2000-03-101-0/+414
| | | | Marc-Andre Lemburg.
* Marc-Andre Lemburg: support pickling Unicode objects, both in textGuido van Rossum2000-03-101-0/+28
| | | | mode ('V') and in binary mode ('X').
* Marc-Andre Lemburg: add UnicodeType.Guido van Rossum2000-03-101-0/+1
|
* Marc-Andre Lemburg: Unicode encodings.Guido van Rossum2000-03-1064-0/+8398
|
* Marc-Andre Lemburg: Add UnicodeError, derived from ValueError.Guido van Rossum2000-03-101-0/+7
|
* Catch up with change to CCompiler API: call 'create_static_lib()', notGreg Ward2000-03-101-3/+3
| | | | 'link_static_lib()'.
* Renamed 'link_static_lib() to 'create_static_lib()', and rewrote it createGreg Ward2000-03-101-25/+15
| | | | | a static library (using lib.exe as found by '__init__()', hopefully through registry entries pointing to DevStudio).
* Renamed 'link_static_lib() to 'create_static_lib()'.Greg Ward2000-03-102-18/+19
|
* 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.