]> granicus.if.org Git - python/log
python
24 years agoMoved robotparser.py to the Lib directory.
Guido van Rossum [Wed, 29 Mar 2000 16:02:45 +0000 (16:02 +0000)]
Moved robotparser.py to the Lib directory.
If you do a "cvs update" in the Lib directory, it will pop up there.

24 years agoPut the Python "system" include dir last, rather than first.
Greg Ward [Wed, 29 Mar 2000 04:13:49 +0000 (04:13 +0000)]
Put the Python "system" include dir last, rather than first.

24 years agoCall 'find_exe()', not '_find_exe()'.
Greg Ward [Wed, 29 Mar 2000 04:13:00 +0000 (04:13 +0000)]
Call 'find_exe()', not '_find_exe()'.

24 years agoPatch inspired by Bastian Kleineidam <calvin@cs.uni-sb.de>:
Greg Ward [Wed, 29 Mar 2000 03:29:34 +0000 (03:29 +0000)]
Patch inspired by Bastian Kleineidam <calvin@cs.uni-sb.de>:
use global __debug__ flag to determine if compiled files will be ".pyc"
or ".pyo".  Tweaked compilation output messages too.

24 years agoChanged 'copy_tree()' so it returns the list of all files that were copied or
Greg Ward [Wed, 29 Mar 2000 03:27:45 +0000 (03:27 +0000)]
Changed 'copy_tree()' so it returns the list of all files that were copied or
might have been copied, regardless of the 'update' flag.

24 years agoDocumented Bastian's patch.
Greg Ward [Wed, 29 Mar 2000 02:56:34 +0000 (02:56 +0000)]
Documented Bastian's patch.
Made handling OSError in 'mkpath()' more standard.

24 years agoPatch from Bastian Kleineidam <calvin@cs.uni-sb.de>:
Greg Ward [Wed, 29 Mar 2000 02:53:02 +0000 (02:53 +0000)]
Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>:
make 'mkdir()' return list of directories created.

24 years agoAdded 'make_tarball()' and 'make_zipfile()' functions in preparation
Greg Ward [Wed, 29 Mar 2000 02:48:40 +0000 (02:48 +0000)]
Added 'make_tarball()' and 'make_zipfile()' functions in preparation
for the 'bdist_dumb' command.  Adapted, with tweakage, from the 'sdist'
command.

24 years agoMoved the guts of 'make_tarball()' and 'make_zipfile()' to distutils.util
Greg Ward [Wed, 29 Mar 2000 02:47:29 +0000 (02:47 +0000)]
Moved the guts of 'make_tarball()' and 'make_zipfile()' to distutils.util
in preparation for the 'bdist_dumb' command; these methods remain as
trivial wrappers around the versions in distutils.util.

24 years agoAdded the "distribution query" methods: 'has_pure_modules()',
Greg Ward [Wed, 29 Mar 2000 02:20:45 +0000 (02:20 +0000)]
Added the "distribution query" methods: 'has_pure_modules()',
'has_ext_modules()', 'has_c_libraries()', 'has_modules()', and 'is_pure()'.

24 years agoAdded 'build_clib'; replaced 'install_py' and 'install_ext' with 'install_lib'.
Greg Ward [Wed, 29 Mar 2000 02:18:39 +0000 (02:18 +0000)]
Added 'build_clib'; replaced 'install_py' and 'install_ext' with 'install_lib'.

24 years agoBe sure to run both 'build_py' and 'build_ext', now that this command
Greg Ward [Wed, 29 Mar 2000 02:17:42 +0000 (02:17 +0000)]
Be sure to run both 'build_py' and 'build_ext', now that this command
  is responsible for installing all Python modules (pure and extensions).
Added 'get_outputs()' in preparation for the 'bdist' command, and
  '_mutate_outputs()' to support 'get_outputs()'.

24 years agoChanged so the sub-commands we rely on to do the real work is specified
Greg Ward [Wed, 29 Mar 2000 02:15:57 +0000 (02:15 +0000)]
Changed so the sub-commands we rely on to do the real work is specified
  in a class attribute 'sub_commands', rather than hard-coded in 'run()'.
  This should make it easier to subclass 'install', and also makes it
  easier to keep 'run()' and the new 'get_outputs()' consistent.
Added 'get_outputs()' in preparation for the 'bdist' command.

24 years agoUse the new 'has_pure_modules()', 'has_ext_modules()', 'has_c_libraries()'
Greg Ward [Wed, 29 Mar 2000 02:14:21 +0000 (02:14 +0000)]
Use the new 'has_pure_modules()', 'has_ext_modules()', 'has_c_libraries()'
methods of Distribution instead of grovelling directly in self.distribution.

24 years agoAdded 'get_outputs()' in prepartion for the 'bdist' command.
Greg Ward [Wed, 29 Mar 2000 02:13:09 +0000 (02:13 +0000)]
Added 'get_outputs()' in prepartion for the 'bdist' command.
Changed signature of 'build_extensions()': no longer takes the extension
  list, but uses 'self.extensions' (just like 'get_outputs()' has to)
Moved call to 'check_extensions_list()' from 'run()' to 'build_extensions()',
  again for consistency with 'get_outputs()'.

24 years agoDeleted some crufty comments and code.
Greg Ward [Wed, 29 Mar 2000 02:10:51 +0000 (02:10 +0000)]
Deleted some crufty comments and code.
A host of improvements in preparation for the 'bdist' command:
  - added 'get_outputs()' method (all the other improvements were to support
    this addition)
  - made 'find_package_modules()' and 'find_modules()' return similar
    values (list of (package, module, module_filename) tuples)
  - factored 'find_all_modules()' out of 'get_source_files()' (needed
    by 'get_outputs()')
  - factored 'get_module_outfile()' out of 'build_module()' (also needed
    by 'get_outputs()')
  - various little tweaks, improvements, comment/doc updates

24 years agoUpdate for creating and linking with python16.dll.
Guido van Rossum [Wed, 29 Mar 2000 01:54:24 +0000 (01:54 +0000)]
Update for creating and linking with python16.dll.
Also, _tkinter is linked with Tcl 8.3.

24 years agoUpdated for Python 1.6 and VC++ 6.0.
Guido van Rossum [Wed, 29 Mar 2000 01:51:37 +0000 (01:51 +0000)]
Updated for Python 1.6 and VC++ 6.0.

24 years agoVersion -> 1.6.
Guido van Rossum [Wed, 29 Mar 2000 01:50:50 +0000 (01:50 +0000)]
Version -> 1.6.

24 years agoChanges to completely ignore the registry when it detects that you are
Guido van Rossum [Wed, 29 Mar 2000 01:49:47 +0000 (01:49 +0000)]
Changes to completely ignore the registry when it detects that you are
running out of the build directory.  This means that it will no longer
try to use an older version of the library when an older version has
been installed.

24 years agoChange the pragmas to use python16.lib instead of python15.lib. (Took
Guido van Rossum [Wed, 29 Mar 2000 01:48:29 +0000 (01:48 +0000)]
Change the pragmas to use python16.lib instead of python15.lib.  (Took
me half an hour to find why it was still linking with python15.dll!)

24 years agoVersion updated to 1.6; API version to 1009.
Guido van Rossum [Wed, 29 Mar 2000 01:46:45 +0000 (01:46 +0000)]
Version updated to 1.6; API version to 1009.

24 years agoThe Tcl_Obj patch discussed on the patches list.
Guido van Rossum [Wed, 29 Mar 2000 00:19:50 +0000 (00:19 +0000)]
The Tcl_Obj patch discussed on the patches list.

This was originally submitted by Martin von Loewis as part of his
Unicode patch; all I did was add special cases for Python int and
float objects and rearrange the object type tests somewhat to speed up
the common cases (string, int, float, tuple, unicode, object).

24 years agoremove reference (vestigal) to CALL_FUNCTION_STAR
Jeremy Hylton [Wed, 29 Mar 2000 00:10:44 +0000 (00:10 +0000)]
remove reference (vestigal) to CALL_FUNCTION_STAR

24 years agoremove reference to CALL_FUNCTION_STAR in comment
Jeremy Hylton [Wed, 29 Mar 2000 00:10:03 +0000 (00:10 +0000)]
remove reference to CALL_FUNCTION_STAR in comment

24 years agofix previous checkin
Jeremy Hylton [Tue, 28 Mar 2000 23:53:22 +0000 (23:53 +0000)]
fix previous checkin

24 years agoadd test cases for Greg Ewing's extended call syntax patch
Jeremy Hylton [Tue, 28 Mar 2000 23:51:17 +0000 (23:51 +0000)]
add test cases for Greg Ewing's extended call syntax patch

24 years agoslightly modified version of Greg Ewing's extended call syntax patch
Jeremy Hylton [Tue, 28 Mar 2000 23:49:17 +0000 (23:49 +0000)]
slightly modified version of Greg Ewing's extended call syntax patch

executive summary:
Instead of typing 'apply(f, args, kwargs)' you can type 'f(*arg, **kwargs)'.
Some file-by-file details follow.

Grammar/Grammar:
    simplify varargslist, replacing '*' '*' with '**'
    add * & ** options to arglist

Include/opcode.h & Lib/dis.py:
    define three new opcodes
        CALL_FUNCTION_VAR
        CALL_FUNCTION_KW
        CALL_FUNCTION_VAR_KW

Python/ceval.c:
    extend TypeError "keyword parameter redefined" message to include
        the name of the offending keyword
    reindent CALL_FUNCTION using four spaces
    add handling of sequences and dictionaries using extend calls
    fix function import_from to use PyErr_Format

24 years agoFredrik Lundh:
Guido van Rossum [Tue, 28 Mar 2000 21:45:46 +0000 (21:45 +0000)]
Fredrik Lundh:

This fixes a bunch of socket.connect(host, post) calls.  Note that I
haven't tested all modules -- I don't have enough servers here...

24 years agoFredrik Lundh:
Guido van Rossum [Tue, 28 Mar 2000 21:42:38 +0000 (21:42 +0000)]
Fredrik Lundh:

The new filecmp module has an optional argument called use_statcache
which is documented as a true/false value, but used as an tuple index.

This patches replaces the tuple stuff with a good old if- statement,
and also removes a few other tuple pack/unpack constructs (if not
else, this saves a few bytes in the PYC file, and a few microseconds
when using the module ;-).

24 years agoUpdated NetPresenz URL. Still needs update in the light of the new :Mac:Tools:CGI...
Just van Rossum [Tue, 28 Mar 2000 20:54:50 +0000 (20:54 +0000)]
Updated NetPresenz URL. Still needs update in the light of the new :Mac:Tools:CGI: stuff. Later. (jvr)

24 years agoadded PythonCGISlave and BuildCGIApplet to the list of applets to build (jvr)
Just van Rossum [Tue, 28 Mar 2000 20:50:36 +0000 (20:50 +0000)]
added PythonCGISlave and BuildCGIApplet to the list of applets to build (jvr)

24 years agoMark Hammond: add winreg module as new subproject.
Guido van Rossum [Tue, 28 Mar 2000 20:37:33 +0000 (20:37 +0000)]
Mark Hammond: add winreg module as new subproject.

24 years agoMark Hammond: new winreg module; updated dllbase file.
Guido van Rossum [Tue, 28 Mar 2000 20:37:15 +0000 (20:37 +0000)]
Mark Hammond: new winreg module; updated dllbase file.

24 years agoMark Hammond: test suite for new winreg module.
Guido van Rossum [Tue, 28 Mar 2000 20:36:51 +0000 (20:36 +0000)]
Mark Hammond: test suite for new winreg module.

24 years agoMarc-Andre Lemburg:
Guido van Rossum [Tue, 28 Mar 2000 20:29:59 +0000 (20:29 +0000)]
Marc-Andre Lemburg:

The attached patch set includes a workaround to get Python with
Unicode compile on BSDI 4.x (courtesy Thomas Wouters; the cause
is a bug in the BSDI wchar.h header file) and Python interfaces
for the MBCS codec donated by Mark Hammond.

Also included are some minor corrections w/r to the docs of
the new "es" and "es#" parser markers (use PyMem_Free() instead
of free(); thanks to Mark Hammond for finding these).

The unicodedata tests are now in a separate file
(test_unicodedata.py) to avoid problems if the module cannot
be found.

24 years agoPiers Lauder:
Guido van Rossum [Tue, 28 Mar 2000 20:20:53 +0000 (20:20 +0000)]
Piers Lauder:

This patch fixes the "search" command in imaplib. The problem
was that a search can take multiple arguments, but as defined,
would only accept one.

I have also made changes to the test code at the end to be less
verbose by default, but to accept a verbosity argument.

24 years agoFix suggested by Magnus Kessler: in class Page, it is possible for
Guido van Rossum [Tue, 28 Mar 2000 20:10:39 +0000 (20:10 +0000)]
Fix suggested by Magnus Kessler: in class Page, it is possible for
self.parser to be None; in that case don't dereference it in
getnames().

24 years agoPatch by Neil Schemenauer to remove support for Tcl/Tk versions before
Guido van Rossum [Tue, 28 Mar 2000 20:07:05 +0000 (20:07 +0000)]
Patch by Neil Schemenauer to remove support for Tcl/Tk versions before
8.0.  There really is no excuse, and for who really still wants those,
they can go back to Python 1.5.2.

24 years agosmall fix: don't depend on the exact location of PythonCGISlave within the Python...
Just van Rossum [Tue, 28 Mar 2000 14:53:32 +0000 (14:53 +0000)]
small fix: don't depend on the exact location of PythonCGISlave within the Python tree. (jvr)

24 years agoAdded getaboutmenutext() method. (jvr)
Just van Rossum [Tue, 28 Mar 2000 13:57:34 +0000 (13:57 +0000)]
Added getaboutmenutext() method. (jvr)

24 years ago- new version of PythonCGISlave
Just van Rossum [Tue, 28 Mar 2000 12:05:13 +0000 (12:05 +0000)]
- new version of PythonCGISlave
- new script/applet BuildCGIApplet
This largely supercedes :Mac:Demos:cgi, except for the html doc file. Should it move here? Merged with CGI_README.txt?
Todo: fullbuild support.
(jvr)

24 years agoMBCS codecs. (Win32 only.) By Mark Hammond.
Guido van Rossum [Tue, 28 Mar 2000 02:01:52 +0000 (02:01 +0000)]
MBCS codecs.  (Win32 only.)  By Mark Hammond.

24 years agoPrototypes added for MBCS codecs. (Win32 only.)
Guido van Rossum [Tue, 28 Mar 2000 02:01:15 +0000 (02:01 +0000)]
Prototypes added for MBCS codecs.  (Win32 only.)

24 years agoTypo fixed by Mark Hammond.
Guido van Rossum [Tue, 28 Mar 2000 02:00:29 +0000 (02:00 +0000)]
Typo fixed by Mark Hammond.

24 years agoMBCS codecs for Windows. Contributed by Mark Hammond.
Guido van Rossum [Tue, 28 Mar 2000 01:58:50 +0000 (01:58 +0000)]
MBCS codecs for Windows.  Contributed by Mark Hammond.

24 years agoAdd a call to Tcl_FindExecutable(). This was inspired by a patch by
Guido van Rossum [Mon, 27 Mar 2000 21:46:29 +0000 (21:46 +0000)]
Add a call to Tcl_FindExecutable().  This was inspired by a patch by
Martin von Loewis (whose more elaborate patch to use objects is still
under review).

24 years agoSkip Montanaro:
Guido van Rossum [Mon, 27 Mar 2000 19:29:31 +0000 (19:29 +0000)]
Skip Montanaro:

The robotparser.py module currently lives in Tools/webchecker.  In
preparation for its migration to Lib, I made the following changes:

    * renamed the test() function _test
    * corrected the URLs in _test() so they refer to actual documents
    * added an "if __name__ == '__main__'" catcher to invoke _test()
      when run as a main program
    * added doc strings for the two main methods, parse and can_fetch
    * replaced usage of regsub and regex with corresponding re code

24 years agomy previous patch didn't give enough events to SIOUX, this one fixes that (jvr)
Just van Rossum [Mon, 27 Mar 2000 17:13:32 +0000 (17:13 +0000)]
my previous patch didn't give enough events to SIOUX, this one fixes that (jvr)

24 years agofixed several event handling buglets, added command Q support, added a new module...
Just van Rossum [Mon, 27 Mar 2000 16:22:53 +0000 (16:22 +0000)]
fixed several event handling buglets, added command Q support, added a new module doc string, some formatting nits. (jvr)

24 years agoBeefed up error-handling in 'setup()' a smidge:
Greg Ward [Sun, 26 Mar 2000 21:48:43 +0000 (21:48 +0000)]
Beefed up error-handling in 'setup()' a smidge:
handle OSError and DistutilsExecError now.

24 years agoDuh, it helps if '_nt_quote_args()' actually returns the mutated list,
Greg Ward [Sun, 26 Mar 2000 21:47:00 +0000 (21:47 +0000)]
Duh, it helps if '_nt_quote_args()' actually returns the mutated list,
rather than None.

24 years agoFixed a bunch of screwed-up logic and inconsistent terminology.
Greg Ward [Sun, 26 Mar 2000 21:45:14 +0000 (21:45 +0000)]
Fixed a bunch of screwed-up logic and inconsistent terminology.
Fixed 'build_extensions()' to pay attention to the 'rpath' element of the
  'build_info' dictionary.

24 years agoAdded 'runtime_library_dirs' parameter to 'link_*()' methods, and warn that
Greg Ward [Sun, 26 Mar 2000 21:42:28 +0000 (21:42 +0000)]
Added 'runtime_library_dirs' parameter to 'link_*()' methods, and warn that
  we don't know what to do with it when we see it.
Call '_fix_object_args()' and/or '_fix_lib_args()' as appropriate, rather
  than just '_fix_link_args()'.

24 years agoAdded 'runtime_library_dirs' parameter to 'link_*()' methods, and changed to
Greg Ward [Sun, 26 Mar 2000 21:40:19 +0000 (21:40 +0000)]
Added 'runtime_library_dirs' parameter to 'link_*()' methods, and changed to
  use it when linking.
Call '_fix_object_args()' and/or '_fix_lib_args()' as appropriate, rather
  than just '_fix_link_args()'.

24 years agoAdded 'runtime_library_dirs' parameter to 'link_*()' methods.
Greg Ward [Sun, 26 Mar 2000 21:37:09 +0000 (21:37 +0000)]
Added 'runtime_library_dirs' parameter to 'link_*()' methods.
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).

24 years agorealcgitest.py: added import MacOS, it now works again. Removed NetPresenz reference.
Just van Rossum [Sun, 26 Mar 2000 10:12:26 +0000 (10:12 +0000)]
realcgitest.py: added import MacOS, it now works again. Removed NetPresenz reference.
cgitest.cgi.rsrc: disable argv emulation; this is essential for the first time the cgi applet starts up

24 years agoChristian Tismer:
Guido van Rossum [Sat, 25 Mar 2000 18:39:19 +0000 (18:39 +0000)]
Christian Tismer:

Added "better safe than sorry" patch to the new
trashcan code in object.c, to ensure that tstate
is not touched when it might be undefined.

24 years agoMarc-Andre Lemburg:
Guido van Rossum [Fri, 24 Mar 2000 22:14:19 +0000 (22:14 +0000)]
Marc-Andre Lemburg:

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#".

24 years agoFix all routines to use PyArg_ParseTuple(), and add ":name" to the
Guido van Rossum [Fri, 24 Mar 2000 20:56:56 +0000 (20:56 +0000)]
Fix all routines to use PyArg_ParseTuple(), and add ":name" to the
argument format strings.

THIS WILL PROBABLY BREAK LOTS OF CODE!!!

Also fixed a bogus string in an error message in getsockaddrlen().

24 years agoFix the test so that connect() and bind() are called with a single
Guido van Rossum [Fri, 24 Mar 2000 20:54:29 +0000 (20:54 +0000)]
Fix the test so that connect() and bind() are called with a single
argument: a (host, port) tuple.

Like multi-arg append(), multi-arg connect() and bind() may be ruled out!

24 years agoMarc-Andre Lemburg:
Guido van Rossum [Fri, 24 Mar 2000 20:52:23 +0000 (20:52 +0000)]
Marc-Andre Lemburg:

Andy Robinson noted a core dump in the codecs.c file. This
was introduced by my latest patch which fixed a memory leak
in codecs.c. The bug causes all successful codec lookups to fail.

24 years agoRegenerated with test for 'contains'.
Guido van Rossum [Fri, 24 Mar 2000 20:42:39 +0000 (20:42 +0000)]
Regenerated with test for 'contains'.

24 years agoFix probable bug; if errno == EINTR, floatsleep() doesn't break out of
Andrew M. Kuchling [Fri, 24 Mar 2000 20:35:20 +0000 (20:35 +0000)]
Fix probable bug; if errno == EINTR, floatsleep() doesn't break out of
   a Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS block, but it
   calls Py_BLOCK_THREADS anyway. The change moves Py_BLOCK_THREADS
   to inside the if, so it's only executed when the function
   actually returns unexpectedly.

24 years agoFrom Sjoerd Mullender <sjoerd@oratrix.nl>:
Fred Drake [Thu, 23 Mar 2000 18:13:10 +0000 (18:13 +0000)]
From Sjoerd Mullender <sjoerd@oratrix.nl>:

cmp is not used in freeze, but is imported anyway.  What's worse, cmp
is no longer in the library, so freeze won't work like this.

24 years agoImport fix.
Greg Ward [Thu, 23 Mar 2000 04:39:16 +0000 (04:39 +0000)]
Import fix.

24 years agoFixed '_nt_quote_args()': backwards logic reversed, and now it actually
Greg Ward [Thu, 23 Mar 2000 04:38:36 +0000 (04:38 +0000)]
Fixed '_nt_quote_args()': backwards logic reversed, and now it actually
returns a value.

24 years agoFixed the class name.
Greg Ward [Thu, 23 Mar 2000 04:37:11 +0000 (04:37 +0000)]
Fixed the class name.

24 years agoData of type Point is passed by value, not by reference.
Jack Jansen [Wed, 22 Mar 2000 15:35:24 +0000 (15:35 +0000)]
Data of type Point is passed by value, not by reference.

24 years agoFix small errors in description of Mac, Windows installation schemes.
Greg Ward [Wed, 22 Mar 2000 01:00:23 +0000 (01:00 +0000)]
Fix small errors in description of Mac, Windows installation schemes.
Added comment about "--help" (no value) not working.

24 years agoRevised tons of comments to reflect the current state of affairs better.
Greg Ward [Wed, 22 Mar 2000 00:51:18 +0000 (00:51 +0000)]
Revised tons of comments to reflect the current state of affairs better.
Deleted some crufty code.

24 years agoRun 'install_lib' instead of 'install_py', and ditch 'install_ext'
Greg Ward [Wed, 22 Mar 2000 00:40:16 +0000 (00:40 +0000)]
Run 'install_lib' instead of 'install_py', and ditch 'install_ext'
completely (was already commented-out).

24 years agoRenamed install_py.py to install_lib.py, since it now handles installing all
Greg Ward [Wed, 22 Mar 2000 00:37:16 +0000 (00:37 +0000)]
Renamed install_py.py to install_lib.py, since it now handles installing all
Python modules, pure and extensions.

24 years agoObsolete command -- no longer relevant since we now build all modules, pure
Greg Ward [Wed, 22 Mar 2000 00:35:16 +0000 (00:35 +0000)]
Obsolete command -- no longer relevant since we now build all modules, pure
Python and extensions, into the same directory.

24 years agoDropped the evil and misguided 'set_peer_option()' method -- it's no
Greg Ward [Wed, 22 Mar 2000 00:31:37 +0000 (00:31 +0000)]
Dropped the evil and misguided 'set_peer_option()' method -- it's no
longer needed, and can't possibly work anyways.

24 years agoDropped any notion of allowing the user to specify the build directories:
Greg Ward [Wed, 22 Mar 2000 00:30:54 +0000 (00:30 +0000)]
Dropped any notion of allowing the user to specify the build directories:
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.

24 years agoImproved an error message in 'mkpath()'.
Greg Ward [Wed, 22 Mar 2000 00:22:44 +0000 (00:22 +0000)]
Improved an error message in 'mkpath()'.
Tightened up some logic in 'native_path()'.
Added 'subst_vars()' and '_check_environ()'.

24 years agoRenamed 'install_path' to 'extra_path'.
Greg Ward [Wed, 22 Mar 2000 00:20:46 +0000 (00:20 +0000)]
Renamed 'install_path' to 'extra_path'.
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.

24 years agoYet another complete rewrite. Hopefully the *last* complete rewrite of
Greg Ward [Wed, 22 Mar 2000 00:15:45 +0000 (00:15 +0000)]
Yet another complete rewrite.  Hopefully the *last* complete rewrite of
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.

24 years agoFix how we set 'build_dir' and 'install_dir' options from 'install' options --
Greg Ward [Wed, 22 Mar 2000 00:12:51 +0000 (00:12 +0000)]
Fix how we set 'build_dir' and 'install_dir' options from 'install' options --
irrelevant because this file is about to go away, but oh well.

24 years agoTook out what looks like old debugging code that probably should never
Greg Ward [Wed, 22 Mar 2000 00:11:21 +0000 (00:11 +0000)]
Took out what looks like old debugging code that probably should never
have been checked in: was passing the PLAT environment variable as the
'plat' argument to 'new_compiler()'.

24 years agoAdded UserPane callbacks for HitTest and Tracking. Doesn't fully work yet.
Jack Jansen [Tue, 21 Mar 2000 23:03:02 +0000 (23:03 +0000)]
Added UserPane callbacks for HitTest and Tracking. Doesn't fully work yet.

24 years agoAdded a GetControlRect() method to controls which returns the bounding rectangle...
Jack Jansen [Tue, 21 Mar 2000 16:25:23 +0000 (16:25 +0000)]
Added a GetControlRect() method to controls which returns the bounding rectangle. To my surprise this call is missing from the C API...

24 years agoUpdated comment: in PyTypeObject:
Fred Drake [Tue, 21 Mar 2000 16:14:47 +0000 (16:14 +0000)]
Updated comment: in PyTypeObject:

/* More standard operations (at end for binary compatibility) */

should now be:

/* More standard operations (here for binary compatibility) */

since they're no longer at the end!

24 years agoOn 17-Mar-2000, Marc-Andre Lemburg said:
Barry Warsaw [Mon, 20 Mar 2000 16:36:48 +0000 (16:36 +0000)]
On 17-Mar-2000, Marc-Andre Lemburg said:

    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).

24 years agoStarted on support for callbacks for UserPane controls. Unfinished and untested.
Jack Jansen [Mon, 20 Mar 2000 16:09:09 +0000 (16:09 +0000)]
Started on support for callbacks for UserPane controls. Unfinished and untested.

24 years agoSimplified doc string.
Greg Ward [Sat, 18 Mar 2000 17:36:09 +0000 (17:36 +0000)]
Simplified doc string.
Added 'clean' to list of commands.

24 years agoOops! Don't call 'ensure_ready()' in 'Distribution.find_command_obj()' --
Greg Ward [Sat, 18 Mar 2000 17:35:12 +0000 (17:35 +0000)]
Oops!  Don't call 'ensure_ready()' in 'Distribution.find_command_obj()' --
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.

24 years agoTweaked all over:
Greg Ward [Sat, 18 Mar 2000 17:33:18 +0000 (17:33 +0000)]
Tweaked all over:
  * 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)

24 years agoPatch from Bastian Kleineidam <calvin@cs.uni-sb.de>:
Greg Ward [Sat, 18 Mar 2000 15:43:42 +0000 (15:43 +0000)]
Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>:
use 'util.remove_tree()' instead of 'nuke_release_tree()'.

24 years agoPatch from Bastian Kleineidam <calvin@cs.uni-sb.de>: added 'remove_tree()'.
Greg Ward [Sat, 18 Mar 2000 15:42:22 +0000 (15:42 +0000)]
Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>: added 'remove_tree()'.

24 years agoContribution from Bastian Kleineidam <calvin@cs.uni-sb.de>:
Greg Ward [Sat, 18 Mar 2000 15:37:26 +0000 (15:37 +0000)]
Contribution from Bastian Kleineidam <calvin@cs.uni-sb.de>:
the Distutils 'clean' command.

24 years agoIn 'finalize_options()': if 'self.libs' is a string, make it a singleton list.
Greg Ward [Sat, 18 Mar 2000 15:21:03 +0000 (15:21 +0000)]
In 'finalize_options()': if 'self.libs' is a string, make it a singleton list.

24 years agoChanged to pay attention to the 'runtime_library_dirs' list (= 'rpath'
Greg Ward [Sat, 18 Mar 2000 15:19:51 +0000 (15:19 +0000)]
Changed to pay attention to the 'runtime_library_dirs' list (= 'rpath'
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!)

24 years agoThird attempt at documenting an installation scheme; this one feels like
Greg Ward [Sat, 18 Mar 2000 15:11:50 +0000 (15:11 +0000)]
Third attempt at documenting an installation scheme; this one feels like
it could work--reasonably short and straightforward to document, but
flexible enough that it will be able to handle more than just modules
and extensions in the future.

24 years agoOf course, I forget how to type long ago...
Fred Drake [Fri, 17 Mar 2000 16:56:23 +0000 (16:56 +0000)]
Of course, I forget how to type long ago...

Typo noted by /F.

24 years agoAdded a method GetMediaNextInterestingTimeOnly, which is like GetMediaNextInteresting...
Jack Jansen [Fri, 17 Mar 2000 16:49:59 +0000 (16:49 +0000)]
Added a method GetMediaNextInterestingTimeOnly, which is like GetMediaNextInterestingTime without asking for the duration (which is, according to qt docs, expensive).

24 years ago"write marshalled" --> "writes marshalled" (in docstring); noted by
Fred Drake [Fri, 17 Mar 2000 15:43:37 +0000 (15:43 +0000)]
"write marshalled" --> "writes marshalled" (in docstring); noted by
Detlef Lannert <lannert@lannert.rz.uni-duesseldorf.de>.

24 years agoOops, another in the same file; I should read the mail fully before
Fred Drake [Fri, 17 Mar 2000 15:42:11 +0000 (15:42 +0000)]
Oops, another in the same file; I should read the mail fully before
checking in; sorry!

"the the" --> "the" (in docstring); noted by Detlef Lannert
<lannert@lannert.rz.uni-duesseldorf.de>.

24 years ago"intput" --> "input" (in docstring); noted by Detlef Lannert
Fred Drake [Fri, 17 Mar 2000 15:40:35 +0000 (15:40 +0000)]
"intput" --> "input" (in docstring); noted by Detlef Lannert
<lannert@lannert.rz.uni-duesseldorf.de>.