]> granicus.if.org Git - python/log
python
24 years agoMichael Hudson fixes a case where execv() is called (for a test) with
Guido van Rossum [Wed, 26 Apr 2000 20:32:08 +0000 (20:32 +0000)]
Michael Hudson fixes a case where execv() is called (for a test) with
an empty argument list -- another patch he's checking in will make
this illegal (the first argument should always be the program name).

24 years agoAdded a "See also:" section that exhibits the \seerfc markup.
Fred Drake [Wed, 26 Apr 2000 18:20:04 +0000 (18:20 +0000)]
Added a "See also:" section that exhibits the \seerfc markup.

24 years agoDefine \seerfc within the seealso environment.
Fred Drake [Wed, 26 Apr 2000 18:13:58 +0000 (18:13 +0000)]
Define \seerfc within the seealso environment.

24 years agoref_module_index_helper(): Use "my" instead of "local".
Fred Drake [Wed, 26 Apr 2000 18:05:24 +0000 (18:05 +0000)]
ref_module_index_helper():  Use "my" instead of "local".

get_rfc_url():  New function; returns the URL for a numbered IETF RFC.

do_cmd_rfc():  Use get_rfc_url() instead of hard-coding in the HTML
               formatting.

do_cmd_seerfc():  New function.

do_env_definitions():  Small change to avoid "local".

24 years agoHacked things up a bit so that configuration variables are expanded
Greg Ward [Wed, 26 Apr 2000 02:38:01 +0000 (02:38 +0000)]
Hacked things up a bit so that configuration variables are expanded
in command-line options, and in two phases at that: first, we expand
'install_base' and 'install_platbase', and then the other 'install_*'
options.  This lets us do tricky stuff like
    install --prefix='/tmp$sys_prefix'
...oooh, neat.

Simplified 'select_scheme()' -- it's no longer responsible for expanding
config vars, tildes, etc.

Define installation-specific config vars in 'self.config_vars', rather than
in a local dictionary of one method.  Also factored '_expand_attrs()' out
of 'expand_dirs()' and added 'expand_basedirs()'.

Added a bunch of debugging output so I (and others) can judge the
success of this crazy scheme through direct feedback.

24 years agoHarry Henry Gebel: import exception classes.
Greg Ward [Wed, 26 Apr 2000 02:29:51 +0000 (02:29 +0000)]
Harry Henry Gebel: import exception classes.

24 years agoHarry Henry Gebel: add 'long_description' to DistributionMetadata.
Greg Ward [Wed, 26 Apr 2000 02:26:55 +0000 (02:26 +0000)]
Harry Henry Gebel: add 'long_description' to DistributionMetadata.

24 years agoSupply short form for --manifest-only (-o) and --force-manifest (-f)
Greg Ward [Wed, 26 Apr 2000 01:14:33 +0000 (01:14 +0000)]
Supply short form for --manifest-only (-o) and --force-manifest (-f)
options.

24 years agoHarry Henry Gebel:
Greg Ward [Wed, 26 Apr 2000 01:12:40 +0000 (01:12 +0000)]
Harry Henry Gebel:
Fix 'sdist.write_manifest()' to respect the value of dry_run.

24 years agoFix typo in last patch -- the symbol's name is MSG_DONWAIT, not
Guido van Rossum [Tue, 25 Apr 2000 21:53:58 +0000 (21:53 +0000)]
Fix typo in last patch -- the symbol's name is MSG_DONWAIT, not
MSG_DONTWAIT.  Reported by Fredrik Lundh.

24 years agoPatch by Charles G Waldman:
Guido van Rossum [Tue, 25 Apr 2000 21:34:53 +0000 (21:34 +0000)]
Patch by Charles G Waldman:

1)  Adds MSG_DONTWAIT if defined (I needed this)
2)  Spells "coreectly" correctly ;-)

24 years agoPatch inspired by Just van Rossum: on the Mac, in savefilename(), make
Guido van Rossum [Tue, 25 Apr 2000 21:13:24 +0000 (21:13 +0000)]
Patch inspired by Just van Rossum: on the Mac, in savefilename(), make
the path to save a relative path by prefixing it with os.sep (':').
Also fix an indent inconsistency in the same function.

24 years agoRemoved some extraneous and confusing parenthesized expressions.
Fred Drake [Tue, 25 Apr 2000 21:09:10 +0000 (21:09 +0000)]
Removed some extraneous and confusing parenthesized expressions.
Noted by Skip Montanaro <skip@mojam.com>.

24 years agoCharles G Waldman: Doing a PyObject_New then PyMem_DEL causes havoc if
Guido van Rossum [Tue, 25 Apr 2000 15:59:32 +0000 (15:59 +0000)]
Charles G Waldman: Doing a PyObject_New then PyMem_DEL causes havoc if
you are trying to use Py_TRACE_REFS.

24 years agoMichael Hudson:
Guido van Rossum [Tue, 25 Apr 2000 10:53:22 +0000 (10:53 +0000)]
Michael Hudson:

I think that after this patch, all objects in the os module (with names
that don't start with "_") that can have docstrings, do, on Linux at
least.

Also fix a nit in one of my spawn* docstrings.

24 years agovalidate_arglist(): Re-written to reflect extended call syntax.
Fred Drake [Tue, 25 Apr 2000 04:14:46 +0000 (04:14 +0000)]
validate_arglist():  Re-written to reflect extended call syntax.

validate_numnodes():  Added comment to explain the sometimes idiomatic
        usage pattern.

24 years agoMark Hammond: Added dependency of winsound project on python16
Guido van Rossum [Tue, 25 Apr 2000 03:24:06 +0000 (03:24 +0000)]
Mark Hammond: Added dependency of winsound project on python16
project.  [However I didn't add the other changes in his patch, which
were just taking away the source code control stuff -- this doesn't
hurt and would come back as soon as I make another change. --GvR]

24 years agoAdded section headers for "Extending the Distutils" section (just
Greg Ward [Tue, 25 Apr 2000 02:57:36 +0000 (02:57 +0000)]
Added section headers for "Extending the Distutils" section (just
a reminder to myself).

24 years agoBumped version to 0.8.2.
Greg Ward [Tue, 25 Apr 2000 01:55:58 +0000 (01:55 +0000)]
Bumped version to 0.8.2.

24 years agoHarry Henry Gebel:
Greg Ward [Tue, 25 Apr 2000 01:38:20 +0000 (01:38 +0000)]
Harry Henry Gebel:
Adds bztar format to generate .tar.bz2 tarballs

Uses the -f argument to overright old tarballs automatically, I am
assuming that if the old tarball was wanted it would have been moved or
else the version number would have been changed.

Uses the -9 argument to bzip2 and gzip to use maximum
compression. Compress uses the maximum compression by default.

Tests for correct value for the 'compress' argument of make_tarball. This
is one less place for someone adding new compression programs to forget to
change.

24 years agoLyle Johnson: fixed broken logic in 'native_path()'.
Greg Ward [Tue, 25 Apr 2000 01:33:11 +0000 (01:33 +0000)]
Lyle Johnson: fixed broken logic in 'native_path()'.

24 years agoChristian Tismer -- total rewrite on trashcan code.
Guido van Rossum [Mon, 24 Apr 2000 15:40:53 +0000 (15:40 +0000)]
Christian Tismer -- total rewrite on trashcan code.

Improvements:
- does no longer need any extra memory
- has no relationship to tstate
- works in debug mode
- can easily be modified for free threading (hi Greg:)

Side effects:
Trashcan does change the order of object destruction.
Prevending that would be quite an immense effort, as
my attempts have shown. This version works always
the same, with debug mode or not. The slightly
changed destruction order should therefore be no problem.

Algorithm:
While the old idea of delaying the destruction of some
obejcts at a certain recursion level was kept, we now
no longer aloocate an object to hold these objects.
The delayed objects are instead chained together
via their ob_type field. The type is encoded via
ob_refcnt. When it comes to the destruction of the
chain of waiting objects, the topmost object is popped
off the chain and revived with type and refcount 1,
then it gets a normal Py_DECREF.

I am confident that this solution is near optimum
for minimizing side effects and code bloat.

24 years agoAdd definition of socklen_t so that socketmodule.c will compile on Windows.
Guido van Rossum [Mon, 24 Apr 2000 15:37:34 +0000 (15:37 +0000)]
Add definition of socklen_t so that socketmodule.c will compile on Windows.

24 years agoJack Jansen: The GUSI 2.0 I/O library used on the Mac uses the
Guido van Rossum [Mon, 24 Apr 2000 15:16:03 +0000 (15:16 +0000)]
Jack Jansen: The GUSI 2.0 I/O library used on the Mac uses the
socklen_t (unsigned int) for most size parameters.  Apparently this is
part of the UNIX 98 standard.

[GvR: the changes to configure.in etc. that I just checked in make
sure that socklen_t is defined everywhere, so I deleted the little
part of Jack's mod to define socklen_t if not in GUSI2.  I suppose I
will have to add it to the Windows config.h in a minute.]

24 years agoJack Jansen: The GUSI 2.0 I/O library (which is used on the Mac)
Guido van Rossum [Mon, 24 Apr 2000 15:12:54 +0000 (15:12 +0000)]
Jack Jansen: The GUSI 2.0 I/O library (which is used on the Mac)
doesn't use the special header file for select anymore.

24 years agoAdded tests for socklen_t
Guido van Rossum [Mon, 24 Apr 2000 15:12:04 +0000 (15:12 +0000)]
Added tests for socklen_t

24 years agoJack Jansen: The new version of the GUSI i/o library on the Macintosh
Guido van Rossum [Mon, 24 Apr 2000 15:08:18 +0000 (15:08 +0000)]
Jack Jansen: The new version of the GUSI i/o library on the Macintosh
has a few slightly different calls from the old one.

24 years agoJack Jansen: Posix threads are now supported on the Macintosh too.
Guido van Rossum [Mon, 24 Apr 2000 15:06:51 +0000 (15:06 +0000)]
Jack Jansen: Posix threads are now supported on the Macintosh too.

24 years agoAdded site-packages. (Sorry, forgot who submitted this patch.)
Guido van Rossum [Mon, 24 Apr 2000 14:57:21 +0000 (14:57 +0000)]
Added site-packages.  (Sorry, forgot who submitted this patch.)

24 years agoJack Jansen: A few new types needed by new API calls.
Guido van Rossum [Mon, 24 Apr 2000 14:56:00 +0000 (14:56 +0000)]
Jack Jansen: A few new types needed by new API calls.

24 years agoOops -- Mark forgot to add "0x" to the /base: argument.
Guido van Rossum [Mon, 24 Apr 2000 14:17:17 +0000 (14:17 +0000)]
Oops -- Mark forgot to add "0x" to the /base: argument.

24 years agoFix to previous patch: send the request data when it's provided
Andrew M. Kuchling [Mon, 24 Apr 2000 14:17:06 +0000 (14:17 +0000)]
Fix to previous patch: send the request data when it's provided

24 years agoAdded a provision to stop all threads before exiting from the test:
Guido van Rossum [Mon, 24 Apr 2000 14:07:03 +0000 (14:07 +0000)]
Added a provision to stop all threads before exiting from the test:
the change to regrtest.py to unload all newly imported modules did
something bad to the threads -- and I realized that they would never
stop!

24 years agoRemove Windows line endings.
Guido van Rossum [Mon, 24 Apr 2000 14:02:15 +0000 (14:02 +0000)]
Remove Windows line endings.

24 years agoFix spelling error and remove Windows line endings.
Guido van Rossum [Mon, 24 Apr 2000 14:01:51 +0000 (14:01 +0000)]
Fix spelling error and remove Windows line endings.

24 years agoChanges by Mark Hammond to ignore more by-products of the build.
Guido van Rossum [Mon, 24 Apr 2000 13:32:05 +0000 (13:32 +0000)]
Changes by Mark Hammond to ignore more by-products of the build.

24 years agoSecurity patch for Unix by Chris McDonough.
Guido van Rossum [Mon, 24 Apr 2000 13:28:02 +0000 (13:28 +0000)]
Security patch for Unix by Chris McDonough.

This uses the same precautions when trying to find a temporary
directory as when the actual tempfile is created (using O_CREAT and
O_EXCL).  On non-posix platforms, nothing is changed.

24 years agoDon't build the _tkinter project from Build, only the one from Extensions:Imaging...
Jack Jansen [Sun, 23 Apr 2000 22:13:15 +0000 (22:13 +0000)]
Don't build the _tkinter project from Build, only the one from Extensions:Imaging, which now drops its resulting .slb into the PlugIns folder.

24 years agoTk 8.3.0 resources.
Jack Jansen [Sun, 23 Apr 2000 22:12:13 +0000 (22:12 +0000)]
Tk 8.3.0 resources.

24 years agoFixed to work with Tcl/Tk 8.3.0, at least, my modified copy of it.
Jack Jansen [Sun, 23 Apr 2000 22:11:36 +0000 (22:11 +0000)]
Fixed to work with Tcl/Tk 8.3.0, at least, my modified copy of it.

24 years agoFixed bug reported by JP Calderone: https:// URL's didn't work.
Andrew M. Kuchling [Sun, 23 Apr 2000 02:53:11 +0000 (02:53 +0000)]
Fixed bug reported by JP Calderone: https:// URL's didn't work.
The fix also adds support for POSTing to an https URL

24 years agoPatch from Harry Henry Gebel: fix two stupid bugs in help-printing stuff.
Greg Ward [Sun, 23 Apr 2000 02:50:45 +0000 (02:50 +0000)]
Patch from Harry Henry Gebel: fix two stupid bugs in help-printing stuff.

24 years agoAdded a couple of contributors. Still needs work for the next distribution.
Jack Jansen [Sat, 22 Apr 2000 22:57:25 +0000 (22:57 +0000)]
Added a couple of contributors. Still needs work for the next distribution.

24 years agoErik van Blokland's CaptureAE.
Jack Jansen [Sat, 22 Apr 2000 22:56:53 +0000 (22:56 +0000)]
Erik van Blokland's CaptureAE.

24 years agoAdded a reference to the Open Directory page on macPython.
Jack Jansen [Sat, 22 Apr 2000 22:56:09 +0000 (22:56 +0000)]
Added a reference to the Open Directory page on macPython.

24 years agoThe .exp file hadn't been regenerated after adding the threading stuff. This means...
Jack Jansen [Sat, 22 Apr 2000 21:51:47 +0000 (21:51 +0000)]
The .exp file hadn't been regenerated after adding the threading stuff. This means that building a nonthreaded PythonCore will now require massaging of the .exp.

24 years agoAdded a note about Personal Webserver, and replaced "netpresenz" by a list of the...
Jack Jansen [Sat, 22 Apr 2000 21:50:33 +0000 (21:50 +0000)]
Added a note about Personal Webserver, and replaced "netpresenz" by a list of the current mac webservers.

24 years agoAdded Corran Webster's explanation of how to write extensions in MPW and a pointer...
Jack Jansen [Sat, 22 Apr 2000 21:48:56 +0000 (21:48 +0000)]
Added Corran Webster's explanation of how to write extensions in MPW and a pointer to his W documentation.

24 years agoSporadic, untested Python 1.5.1 compatibility changes.
Greg Ward [Sat, 22 Apr 2000 15:17:14 +0000 (15:17 +0000)]
Sporadic, untested Python 1.5.1 compatibility changes.

24 years agoMerged in Python 1.5.1 compatibility changes from the 0.1.3 branch:
Greg Ward [Sat, 22 Apr 2000 15:14:58 +0000 (15:14 +0000)]
Merged in Python 1.5.1 compatibility changes from the 0.1.3 branch:
added 'abspath()' and 'extend()'.

24 years agoMerged in code from the 0.1.5 release to handle IOError and OSError
Greg Ward [Sat, 22 Apr 2000 03:20:49 +0000 (03:20 +0000)]
Merged in code from the 0.1.5 release to handle IOError and OSError
exceptions better.

24 years agoCheck that 'self.formats' is good early on.
Greg Ward [Sat, 22 Apr 2000 03:11:55 +0000 (03:11 +0000)]
Check that 'self.formats' is good early on.

24 years agoCatch DistutilsOptionError in 'setup()' -- it's thrown either because of
Greg Ward [Sat, 22 Apr 2000 03:11:17 +0000 (03:11 +0000)]
Catch DistutilsOptionError in 'setup()' -- it's thrown either because of
errors in the setup script or on the command line, so shouldn't result
in a traceback.

24 years agoExtracted the "what-do-I-do-for-this-format" logic from code in
Greg Ward [Sat, 22 Apr 2000 03:09:56 +0000 (03:09 +0000)]
Extracted the "what-do-I-do-for-this-format" logic from code in
  'make_archive()' to a global static dictionary, ARCHIVE_FORMATS.
Added 'check_archive_formats()', which obviously makes good use of
  this dictionary.

24 years agoFix how we generate the meta-data query methods to include 'get_fullname()'
Greg Ward [Sat, 22 Apr 2000 02:52:44 +0000 (02:52 +0000)]
Fix how we generate the meta-data query methods to include 'get_fullname()'
and the other "composite meta-data" methods.

24 years agoChanged to call 'get_fullname()', not 'get_full_name()', on Distribution object.
Greg Ward [Sat, 22 Apr 2000 02:51:25 +0000 (02:51 +0000)]
Changed to call 'get_fullname()', not 'get_full_name()', on Distribution object.

24 years agoMade the GUSI options work again with GUSI 2.
Jack Jansen [Fri, 21 Apr 2000 23:53:37 +0000 (23:53 +0000)]
Made the GUSI options work again with GUSI 2.

24 years agoAdded winsound project to workspace, and added -I options to winsound
Guido van Rossum [Fri, 21 Apr 2000 21:43:40 +0000 (21:43 +0000)]
Added winsound project to workspace, and added -I options to winsound

24 years agoPatch by Vladimir Marangozov to unload additionally imported modules
Guido van Rossum [Fri, 21 Apr 2000 21:35:06 +0000 (21:35 +0000)]
Patch by Vladimir Marangozov to unload additionally imported modules
after each test has been run.  This avoids excessive memory growth
during the tests.

24 years agoAdded test_winsound by Mark Hammond.
Guido van Rossum [Fri, 21 Apr 2000 21:28:47 +0000 (21:28 +0000)]
Added test_winsound by Mark Hammond.

24 years agoMark Hammond:
Guido van Rossum [Fri, 21 Apr 2000 21:26:43 +0000 (21:26 +0000)]
Mark Hammond:

* Base address for all extension modules updated. PC\dllbase_nt.txt
also updated.  Erroneous "libpath" directory removed for all
projects.

* winsound module moved from a builtin module to an extension
module.  This was done primarily to avoid Python16.dll needing to
pull in winmm.dll.  Really dumb test added for winsound - but if
nothing else it ensures the module imports.

24 years agoMark Hammond:
Guido van Rossum [Fri, 21 Apr 2000 21:26:08 +0000 (21:26 +0000)]
Mark Hammond:

* Temp directory for all projects are now specific to the project
(rather than common as before).  This avoids any conflicts with
debug symbols or common file names etc.
NOTE: You should manually delete your existing build directory after
applying this patch, as the MSVC "clean" command will now only clean
the new temporary directories - not the existing common temp
directory.

* Base address for all extension modules updated. PC\dllbase_nt.txt
also updated.  Erroneous "libpath" directory removed for all
projects.

* winsound module moved from a builtin module to an extension
module.  This was done primarily to avoid Python16.dll needing to
pull in winmm.dll.  Really dumb test added for winsound - but if
nothing else it ensures the module imports.

24 years agoCharles Waldman writes:
Guido van Rossum [Fri, 21 Apr 2000 21:17:39 +0000 (21:17 +0000)]
Charles Waldman writes:

"""
Running "test_extcall" repeatedly results in memory leaks.

One of these can't be fixed (at least not easily!), it happens since
this code:

def saboteur(**kw):
    kw['x'] = locals()
d = {}
saboteur(a=1, **d)

creates a circular reference - d['x']['d']==d

The others are due to some missing decrefs in ceval.c, fixed by the
patch attached below.

Note:  I originally wrote this without the "goto", just adding the
missing decref's where needed.  But I think the goto is justified in
keeping the executable code size of ceval as small as possible.
"""

[I think the circular reference is more like kw['x']['kw'] == kw. --GvR]

24 years agoPatch by Charles G Waldman to avoid a sneaky memory leak in
Guido van Rossum [Fri, 21 Apr 2000 21:15:05 +0000 (21:15 +0000)]
Patch by Charles G Waldman to avoid a sneaky memory leak in
_PyTuple_Resize().  In addition, a change suggested by Jeremy Hylton
to limit the size of the free lists is also merged into this patch.

Charles wrote initially:

"""
Test Case:  run the following code:

class Nothing:
    def __len__(self):
        return 5
    def __getitem__(self, i):
        if i < 3:
            return i
        else:
            raise IndexError, i

def g(a,*b,**c):
    return

for x in xrange(1000000):
    g(*Nothing())

and watch Python's memory use go up and up.

Diagnosis:

The analysis begins with the call to PySequence_Tuple at line 1641 in
ceval.c - the argument to g is seen to be a sequence but not a tuple,
so it needs to be converted from an abstract sequence to a concrete
tuple.  PySequence_Tuple starts off by creating a new tuple of length
5 (line 1122 in abstract.c).  Then at line 1149, since only 3 elements
were assigned, _PyTuple_Resize is called to make the 5-tuple into a
3-tuple.  When we're all done the 3-tuple is decrefed, but rather than
being freed it is placed on the free_tuples cache.

The basic problem is that the 3-tuples are being added to the cache
but never picked up again, since _PyTuple_Resize doesn't make use of
the free_tuples cache.  If you are resizing a 5-tuple to a 3-tuple and
there is already a 3-tuple in free_tuples[3], instead of using this
tuple, _PyTuple_Resize will realloc the 5-tuple to a 3-tuple.  It
would more efficient to use the existing 3-tuple and cache the
5-tuple.

By making _PyTuple_Resize aware of the free_tuples (just as
PyTuple_New), we not only save a few calls to realloc, but also
prevent this misbehavior whereby tuples are being added to the
free_tuples list but never properly "recycled".
"""

And later:

"""
This patch replaces my submission of Sun, 16 Apr and addresses Jeremy
Hylton's suggestions that we also limit the size of the free tuple
list.  I chose 2000 as the maximum number of tuples of any particular
size to save.

There was also a problem with the previous version of this patch
causing a core dump if Python was built with Py_TRACE_REFS.  This is
fixed in the below version of the patch, which uses tupledealloc
instead of _Py_Dealloc.
"""

24 years agoCharles Waldman writes:
Guido van Rossum [Fri, 21 Apr 2000 20:49:58 +0000 (20:49 +0000)]
Charles Waldman writes:

"""
In the course of debugging this I also saw that cPickle is
inconsistent with pickle - if you attempt a pickle.load or pickle.dump
on a closed file, you get a ValueError, whereas the corresponding
cPickle operations give an IOError.  Since cPickle is advertised as
being compatible with pickle, I changed these exceptions to match.
"""

24 years agoCharles Waldman writes:
Guido van Rossum [Fri, 21 Apr 2000 20:49:36 +0000 (20:49 +0000)]
Charles Waldman writes:

"""
Problem description:

Run the following script:

import test.test_cpickle
for x in xrange(1000000):
    reload(test.test_cpickle)

Watch Python's memory use go up up and away!

In the course of debugging this I also saw that cPickle is
inconsistent with pickle - if you attempt a pickle.load or pickle.dump
on a closed file, you get a ValueError, whereas the corresponding
cPickle operations give an IOError.  Since cPickle is advertised as
being compatible with pickle, I changed these exceptions to match.
"""

24 years agoUse an explicit macro SOCKETCLOSE which expands to closesocket (on
Guido van Rossum [Fri, 21 Apr 2000 20:33:00 +0000 (20:33 +0000)]
Use an explicit macro SOCKETCLOSE which expands to closesocket (on
Windows), soclose (on OS2), or to close (everywhere else).

Hopefully this fixes a new compilation error that I suddenly get on
Windows because the macro definition for close -> closesocket
apparently was done before including io.h, which contains a prototype
for close.  (No idea why this wasn't an error before.)

24 years agoPatch by Brian Hooper, somewhat augmented by GvR, to strip a trailing
Guido van Rossum [Fri, 21 Apr 2000 18:54:45 +0000 (18:54 +0000)]
Patch by Brian Hooper, somewhat augmented by GvR, to strip a trailing
backslash from the pathname argument to stat() on Windows -- while on
Unix, stat("/bin/") succeeds and does the same thing as stat("/bin"),
on Windows, stat("\\windows\\") fails while stat("\\windows") succeeds.
This modified version of the patch recognizes both / and \.

(This is odd behavior of the MS C library, since
os.listdir("\\windows\\") succeeds!)

24 years agoDoc strings for the spawn* functions, by Michael Hudson.
Guido van Rossum [Fri, 21 Apr 2000 18:35:36 +0000 (18:35 +0000)]
Doc strings for the spawn* functions, by Michael Hudson.

24 years agoFix 'check_metadata()' so it grovels through the distribution's metadata
Greg Ward [Fri, 21 Apr 2000 04:37:12 +0000 (04:37 +0000)]
Fix 'check_metadata()' so it grovels through the distribution's metadata
object, rather than through the distribution itself (since I moved the meta-
data out to a DistributionMetadata instance).

24 years agoPatch from Andrew Kuchling: document the new multiple pattern feature in the
Greg Ward [Fri, 21 Apr 2000 04:35:25 +0000 (04:35 +0000)]
Patch from Andrew Kuchling: document the new multiple pattern feature in the
manifest template.

24 years agoPatch from Andrew Kuchling: allow multiple include/exclude patterns
Greg Ward [Fri, 21 Apr 2000 04:31:10 +0000 (04:31 +0000)]
Patch from Andrew Kuchling: allow multiple include/exclude patterns
for all commands except 'prune' and 'graft'.

24 years agoFixed the '--license' option so it's officially an alias for '--licence',
Greg Ward [Fri, 21 Apr 2000 04:22:49 +0000 (04:22 +0000)]
Fixed the '--license' option so it's officially an alias for '--licence',
and now actually works.

24 years agoAdded the capability for alias options.
Greg Ward [Fri, 21 Apr 2000 04:22:01 +0000 (04:22 +0000)]
Added the capability for alias options.

24 years agoAdded 'has_option()', 'get_attr_name()' methods.
Greg Ward [Fri, 21 Apr 2000 02:31:07 +0000 (02:31 +0000)]
Added 'has_option()', 'get_attr_name()' methods.

24 years agoPatch, originally from Bastian Kleineidam and savagely mutilated by me,
Greg Ward [Fri, 21 Apr 2000 02:28:14 +0000 (02:28 +0000)]
Patch, originally from Bastian Kleineidam and savagely mutilated by me,
to add the "display metadata" options: --name, --version, --author,
and so forth.  Main changes:
  * added 'display_options' class attribute to list all the "display only"
    options (--help-commands plus the metadata options)
  * added DistributionMetadata class as a place to put the actual
    metadata information from the setup script (not to be confused with
    the metadata display options); the logic dealing with metadata
    (eg. return self.name or "UNKNOWN") is now  in this class
  * changed 'parse_command_line()' to use the new OO interface provided
    by fancy_getopt, mainly so we can get at the original order of
    options on the command line, so we can print multiple lines of
    distribution meta-data in the order specified by the user
  * added 'handle_display_options()' to handle display-only options
Also fixed some crufty old comments/docstrings.

24 years agoMade 'generate_help()' and 'print_help()' methods of FancyGetopt.
Greg Ward [Fri, 21 Apr 2000 02:09:26 +0000 (02:09 +0000)]
Made 'generate_help()' and 'print_help()' methods of FancyGetopt.
Added 'set_option_table()' method.
Added missing 'self' to 'get_option_order()'.
Cosmetic/comment/docstring tweaks.

24 years agoContinuing the refactoring: deleted the old 'fancy_getopt()' function,
Greg Ward [Fri, 21 Apr 2000 01:44:00 +0000 (01:44 +0000)]
Continuing the refactoring: deleted the old 'fancy_getopt()' function,
leaving in its place a tiny wrapper around the FancyGetopt class
for backwards compatibility.

24 years agoHefty refactoring: converted 'fancy_getopt()' function into FancyGetopt
Greg Ward [Fri, 21 Apr 2000 01:41:54 +0000 (01:41 +0000)]
Hefty refactoring: converted 'fancy_getopt()' function into FancyGetopt
class.  (Mainly this was to support the ability to go back after the
getopt operation is done and get extra information about the parse,
in particular the original order of options seen on the command line.
But it's a big improvement and should make it a lot easier to add
functionality in the future.)

24 years agoReformatted wide paragraphs.
Greg Ward [Wed, 19 Apr 2000 22:48:09 +0000 (22:48 +0000)]
Reformatted wide paragraphs.

24 years agoReverted '\var' in the "standard installation location" table to '\filevar'.
Greg Ward [Wed, 19 Apr 2000 22:44:25 +0000 (22:44 +0000)]
Reverted '\var' in the "standard installation location" table to '\filevar'.
Reformatted wide paragraphs.

24 years agoDropped '\tilde' and '\bslash' definitions.
Greg Ward [Wed, 19 Apr 2000 22:40:34 +0000 (22:40 +0000)]
Dropped '\tilde' and '\bslash' definitions.

24 years agoChanged '\tilde' and '\bslash' to the standard '\textasciitilde' and
Greg Ward [Wed, 19 Apr 2000 22:40:12 +0000 (22:40 +0000)]
Changed '\tilde' and '\bslash' to the standard '\textasciitilde' and
'\textbackslash'.

24 years agoRemoved '\package' definition.
Greg Ward [Wed, 19 Apr 2000 22:36:33 +0000 (22:36 +0000)]
Removed '\package' definition.

24 years agoChanged '\package' to \module'.
Greg Ward [Wed, 19 Apr 2000 22:36:24 +0000 (22:36 +0000)]
Changed '\package' to \module'.

24 years agoChanged '\option' to '\longprogramopt' wherever it referred to a command-line
Greg Ward [Wed, 19 Apr 2000 22:34:11 +0000 (22:34 +0000)]
Changed '\option' to '\longprogramopt' wherever it referred to a command-line
 option.

24 years agoANSI-fy & de-tabify the source.
Fred Drake [Wed, 19 Apr 2000 13:54:15 +0000 (13:54 +0000)]
ANSI-fy & de-tabify the source.
(4-space indents already used.)

24 years agoBumped version to 0.8.1.
Greg Ward [Wed, 19 Apr 2000 02:23:21 +0000 (02:23 +0000)]
Bumped version to 0.8.1.

24 years agoAdded kludge to deal with the "./ld_so_aix" problem: force all strings
Greg Ward [Wed, 19 Apr 2000 02:22:07 +0000 (02:22 +0000)]
Added kludge to deal with the "./ld_so_aix" problem: force all strings
in the Makefile that start with "./" to be absolute paths (with the
implied root being the directory where the Makefile itself was found).

24 years agoDon't load the config.h file, even under Unix, because we never use the
Greg Ward [Wed, 19 Apr 2000 02:18:09 +0000 (02:18 +0000)]
Don't load the config.h file, even under Unix, because we never use the
information from config.h.  Code is still there in case someone in the
future needs to parse an autoconf-generated config.h file.

24 years agoAdded 'link_executable()' method (Berthold Hoellmann).
Greg Ward [Wed, 19 Apr 2000 02:16:49 +0000 (02:16 +0000)]
Added 'link_executable()' method (Berthold Hoellmann).
Two small fixes to 'link_shared_object()'.

24 years agoFix by Dan Green and Corran Webster to support LongDateTime
Jack Jansen [Tue, 18 Apr 2000 14:08:31 +0000 (14:08 +0000)]
Fix by Dan Green and Corran Webster to support LongDateTime
values. Untested by me.

24 years agoAdded documentation for WindowsError; omission noted by Michal Bozon
Fred Drake [Mon, 17 Apr 2000 17:42:00 +0000 (17:42 +0000)]
Added documentation for WindowsError; omission noted by Michal Bozon
<bozon@natur.cuni.cz>.

(Mark Hammond, other Python/Windows cognoscenti: please check this!)

24 years agoClarify the description of the else clause for try/except, and add an
Fred Drake [Mon, 17 Apr 2000 14:56:31 +0000 (14:56 +0000)]
Clarify the description of the else clause for try/except, and add an
explanation of why you'd want to use it.

Based on a question from Michael Simcich <msimcich@accesstools.com>.

24 years agoReformatted all exception documentation as docstrings.
Greg Ward [Sat, 15 Apr 2000 22:23:47 +0000 (22:23 +0000)]
Reformatted all exception documentation as docstrings.

24 years agoCleaned up/simplified error-handling:
Greg Ward [Sat, 15 Apr 2000 22:15:07 +0000 (22:15 +0000)]
Cleaned up/simplified error-handling:
  - DistutilsOptionError is now documented as it's actually used, ie.
    to indicate bogus option values (usually user options, eg. from
    the command-line)
  - added DistutilsSetupError to indicate errors that definitely arise
    in the setup script
  - got rid of DistutilsValueError, and changed all usage of it to
    either DistutilsSetupError or ValueError as appropriate
  - simplified a bunch of option get/set methods in Command and
    Distribution classes -- just pass on AttributeError most of
    the time, rather than turning it into something else

24 years agoFix PR#7 comparisons of recursive objects
Jeremy Hylton [Fri, 14 Apr 2000 19:13:24 +0000 (19:13 +0000)]
Fix PR#7 comparisons of recursive objects

Note that comparisons of deeply nested objects can still dump core in
extreme cases.

24 years agoAnthony Baxter <anthony@interlink.com.au>:
Fred Drake [Fri, 14 Apr 2000 14:01:34 +0000 (14:01 +0000)]
Anthony Baxter <anthony@interlink.com.au>:
The following adds support for RTSP (RFC2326) URLs to the standard
urlparse.py module.

(Augmented by FLD to include rtspu:, specified in the same RFC & OK'd
by Anthony.)

24 years agoDon't run "ranlib" if sysconfig's RANLIB (from Python's Makefile) starts
Greg Ward [Fri, 14 Apr 2000 13:53:34 +0000 (13:53 +0000)]
Don't run "ranlib" if sysconfig's RANLIB (from Python's Makefile) starts
with ":".

24 years agoVarious wording/formattin tweaks.
Greg Ward [Fri, 14 Apr 2000 01:53:36 +0000 (01:53 +0000)]
Various wording/formattin tweaks.
Started spewing "Creating Built Distributions" section.