diff options
author | PJ Eby <distutils-sig@python.org> | 2005-08-14 17:48:07 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2005-08-14 17:48:07 +0000 |
commit | 91d1b66cc33c1300e1f95012933e5413ea897d01 (patch) | |
tree | a33b52e907b4f7cf871671e023df4ae3b69a8254 | |
parent | 46ff6911ca478ce350ad5cf20a656113cfdfa2ae (diff) | |
download | external_python_setuptools-91d1b66cc33c1300e1f95012933e5413ea897d01.tar.gz external_python_setuptools-91d1b66cc33c1300e1f95012933e5413ea897d01.tar.bz2 external_python_setuptools-91d1b66cc33c1300e1f95012933e5413ea897d01.zip |
Fix some reST formatting problems and other issues discovered during a
quick review.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041198
-rwxr-xr-x | pkg_resources.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/pkg_resources.txt b/pkg_resources.txt index 6ee6c1ef..55d275a8 100755 --- a/pkg_resources.txt +++ b/pkg_resources.txt @@ -18,13 +18,15 @@ packages. Overview -------- -XXX +XXX TBD ----------------- Developer's Guide ----------------- +This section isn't written yet. Currently planned topics include:: + Accessing Resources Finding and Activating Package Distributions get_provider() @@ -519,7 +521,7 @@ to avoid collision with other packages' entry point groups. the specified distribution. Returns ``None`` if the distribution has not advertised a matching entry point. -``get_entry_map(dist, group=None) +``get_entry_map(dist, group=None)`` Return the distribution's entry point map for `group`, or the full entry map for the distribution. This function always returns a dictionary, even if the distribution advertises no entry points. If `group` is given, @@ -876,7 +878,10 @@ If it is a package or module name, the named module or package must be importable (i.e., be in a distribution or directory on ``sys.path``), and the `resource_name` argument is interpreted relative to the named package. (Note that if a module name is used, then the resource name is relative to the -package immediately containing the named module.) +package immediately containing the named module. Also, you should not use use +a namespace package name, because a namespace package can be spread across +multiple distributions, and is therefore ambiguous as to which distribution +should be searched for the resource.) If it is a ``Requirement``, then the requirement is automatically resolved (searching the current ``Environment`` if necessary) and a matching @@ -888,7 +893,7 @@ segment will be treated as a peer of the top-level modules or packages in the distribution. Note that resource names must be ``/``-separated paths and cannot be absolute -(i.e. no leading ``/``) or contain relative names like ``..``. Do *not* use +(i.e. no leading ``/``) or contain relative names like ``".."``. Do *not* use ``os.path`` routines to manipulate resource paths, as they are *not* filesystem paths. @@ -1186,8 +1191,8 @@ You may instead wish to subclass one of the `built-in resource providers`_. Built-in Resource Providers --------------------------- -``pkg_resources`` includes several provider classes, whose inheritance -tree looks like this:: +``pkg_resources`` includes several provider classes that are automatically used +where appropriate. Their inheritance tree looks like this:: NullProvider EggProvider |