[Python-checkins] r69920 - peps/trunk/pep-0376.txt

tarek.ziade python-checkins at python.org
Tue Feb 24 02:01:05 CET 2009


Author: tarek.ziade
Date: Tue Feb 24 02:01:04 2009
New Revision: 69920

Log:
fixes and more details (Floris feedback)

Modified:
   peps/trunk/pep-0376.txt

Modified: peps/trunk/pep-0376.txt
==============================================================================
--- peps/trunk/pep-0376.txt	(original)
+++ peps/trunk/pep-0376.txt	Tue Feb 24 02:01:04 2009
@@ -166,6 +166,8 @@
         MANIFEST
         RECORD
 
+XXX See if we want to keep the 2.5.2-py2.6 part
+
 New functions in pkgutil
 ========================
 
@@ -174,11 +176,15 @@
 
 The new functions added in the package are :
 
-- get_egg_info(pkg_name) -> directory or None
+- get_egg_info(pkg_name) -> path or None
+
+  Scans all site-packages directories and look for all `pkg_name.egg-info` 
+  directory. Returns the directory path that contains a PKG-INFO that matches
+  `pkg_name` for the `name` metadata. Notice that there should be at most 
+  one result. If moe that one path matches the pkg_name, a DistutilsError
+  is raised.
 
-  Scans all site-packages directories and look for all `pkg_name*.egg-info` 
-  directory. If founded, returns the path. If the directory is not found, 
-  returns None.
+  If the directory is not found, returns None.
 
 - get_metadata(pkg_name) -> DistributionMetadata or None
 
@@ -202,7 +208,7 @@
     >>> metadata.version
     '2.5.2'
     >>> from distutils.dist import EGG_INFO_FILES
-    >>> get_metadata('zlib', EGG_INFO_FILES.manifest).read()
+    >>> get_egg_info_file('zlib', EGG_INFO_FILES.manifest).read()
     some
     ...
     files


More information about the Python-checkins mailing list