[Patch #641685] setup.py contained code for finding libraries, instead
of using the CCompiler.find_library_file() provided by the Distutils.
This patch fixes it to use the Distutils method at the cost of some
additional glue.
(The duplication resulted in the SSL module not being automatically
built on Macs; the Distutils knew that shared libraries on OS X have a
.dylib extension, but the setup.py code didn't.)
Constructor accepts optional keyword arguments after a optional items list.
Add fromkeys() as an alternate constructor from an iterable over keys.
Expand related unittests.
Fix for bug #410541: bdist builds bogus .zips
This adds a --relative option to the bdist_dumb command that defaults
to false; if true, the .tar.gz or .zip will be assembled using relative
paths.
Thomas Heller [Tue, 26 Nov 2002 08:05:09 +0000 (08:05 +0000)]
Don't look for modules in the registry any longer.
Mark writes in private email:
"Modules listed in the registry was a dumb idea. This whole scheme
can die. AFAIK, no one in the world uses it (including win32all
since the last build)."
Just van Rossum [Tue, 26 Nov 2002 00:34:52 +0000 (00:34 +0000)]
added support for building standalone applications
- requires modulefinder.py to be on sys.path
- does *not* work for Python.framework (yet), only for static builds
Guido van Rossum [Mon, 25 Nov 2002 21:38:52 +0000 (21:38 +0000)]
A tweaked version of Jeremy's patch #642489, to produce better error
messages about MRO conflicts. (Tweaks here: don't print the message,
but compare it with an expected string.)
Guido van Rossum [Mon, 25 Nov 2002 21:36:54 +0000 (21:36 +0000)]
A tweaked version of Jeremy's patch #642489, to produce better error
messages about MRO conflicts. (The tweaks include correcting spelling
errors, some refactoring to get the name of classic classes, and a
style nit or two.)
SF 643115: Set._update() had a special case for dictionaries which allowed
non-true values to leak in. This threw-off equality testing which depends
on the underlying dictionaries having both the same keys and values.
Gustavo Niemeyer [Mon, 25 Nov 2002 17:25:04 +0000 (17:25 +0000)]
Fixed bug
[#495695] webbrowser.py: selection of browser
* Lib/webbrowser.py
Only include graphic browsers in _tryorder if DISPLAY is set. Also,
included skipstone support, as suggested by Fred in the mentioned bug.
Jack Jansen [Mon, 25 Nov 2002 16:36:49 +0000 (16:36 +0000)]
Added a class PEP252Mixin. By adding this to your ObjectDefinition you
get PEP-252 style objects in stead of old-fashioned objects.
In stead of defining a GetattrHook you declare a class variable getsetlist,
which contains tuples (name, getcode, setcode, docstring).
Only lightly tested: the code still works if you don't inherit PEP252Mixin
and the code works if you inherit it but don't define any getters
or setters. Also, this will not work together with the "poor mans inheritance"
offered by method chains, so the CF module will remain with old-style
objects until PEP253 is supported too.
Jack Jansen [Mon, 25 Nov 2002 13:11:06 +0000 (13:11 +0000)]
Lots of restructuring, mostly suggested by Bill Bumgarner. Main
externally visible difference is that the factory defaults are
now in a plist file in the bundle, in stead of being hard-coded in
the application.
Just van Rossum [Sun, 24 Nov 2002 23:15:57 +0000 (23:15 +0000)]
Don't disable building Mac-specific modules for a non-framework build:
whether they crash or not is not a matter of using a framework or not,
but whether the code is run from an app bundle or not. And that it
_can_ crash (instead of tracing back) is Apple's bug anyway, not ours.
Tim Peters [Sun, 24 Nov 2002 20:23:04 +0000 (20:23 +0000)]
Repaired inaccuracies in the % docs. In particular, we don't (and can't)
guarantee abs(x%y) < abs(y) in all cases when a float is involved.
math.fmod() should, though, so noted that too.
Bugfix candidate. Someone should check the LaTeX here first, though.
Tim Peters [Sun, 24 Nov 2002 02:40:40 +0000 (02:40 +0000)]
Skip test_normalization on Windows until it's at least clear why the
data it needs doesn't exist in the project. If it's a huge file,
maybe the test should be changed to be one of the -u thingies.
Tim Peters [Sat, 23 Nov 2002 18:48:06 +0000 (18:48 +0000)]
Try linking the static Sleepycat lib into _bsddb.pyd. Hard to say
whether this is a correct thing to do:
+ There are linker warnings (see PCbuild\readme.txt).
+ test_bsddb passes, in both release and debug builds now.
+ test_bsddb3 has several failures, but it did before too.
Also made pythoncore a dependency of the _bsddb project, updated
build instructions, added database conversion XXX to NEWS, and fiddled
the Windows installer accordingly.
Tim Peters [Sat, 23 Nov 2002 03:49:08 +0000 (03:49 +0000)]
More bsddb-on-Windows fiddling:
+ News blurb, but as much XXX as news.
+ Updated installer (install the new bsddb package, and the Berkeley DLL;
still don't know how to fold that into _bsddb.pyd).
+ Fleshed out build instructions.
+ Debug Python still blows up.
Jack Jansen [Fri, 22 Nov 2002 23:39:52 +0000 (23:39 +0000)]
Allow access to the returned value(s) as FSRefs. Unfortunately for some
reason getting at saveFileName doesn't work, so it currently only really
works for opening files for reading.
Tim Peters [Fri, 22 Nov 2002 20:00:34 +0000 (20:00 +0000)]
Move Windows Python away from bsddb 1.85 and toward Sleepycat's latest.
The bsddb subproject is gone.
The _bsddb subproject is new.
There are problems here, but I'm out of time to work on this now. If
anyone can address an XXX comment or two in readme.txt, please do!
Jack Jansen [Fri, 22 Nov 2002 16:12:57 +0000 (16:12 +0000)]
Fix for #641455: curses module doesn't build on MacOSX. It turns out the
system headers have two declarations for wchar_t, with different guard macros.
Not sure whether this is a bugfix candidate, that depends on what changed in the
curses module.
Jack Jansen [Fri, 22 Nov 2002 15:53:32 +0000 (15:53 +0000)]
Added the alias manager too. The interface isn't perfect yet: the alias
manager doesn't always have the alias as the first argument, so things
become functions in stead of methods.
Jack Jansen [Fri, 22 Nov 2002 14:58:35 +0000 (14:58 +0000)]
Got angry and added support for pretty much the whole file and folder
manager. This should allow us the get rid of most of the FSSpecs, only
navigation services remains to be done.