/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to INSTALL

Add bzrlib.pyutils, which has get_named_object, a wrapper around __import__.

This is used to replace various ad hoc implementations of the same logic,
notably the version used in registry's _LazyObjectGetter which had a bug when
getting a module without also getting a member.  And of course, this new
function has unit tests, unlike the replaced code.

This also adds a KnownHooksRegistry subclass to provide a more natural home for
some other logic.

I'm not thrilled about the name of the new module or the new functions, but it's
hard to think of good names for such generic functionality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
bzr can optionally use compiled versions of some parts of the code
17
17
for increased speed. When installing bzr you need the ability to
18
 
build C extensions. Some Linux distributions package the necessary
 
18
build C extensions. Some GNU/Linux distributions package the necessary
19
19
headers separately from the main Python package. This package is
20
20
probably named something like python-dev or python-devel. FreeBSD,
21
 
Windows, source-based Linux distributions, and possibly other operating
 
21
Windows, source-based GNU/Linux distributions, and possibly other operating
22
22
systems, have the required files installed by default.
23
23
 
24
24
If you are installing bzr from a bzr branch rather than a release tarball,