diff --git a/pep-0376.txt b/pep-0376.txt index 883c390ca..5af653803 100644 --- a/pep-0376.txt +++ b/pep-0376.txt @@ -164,13 +164,16 @@ The new functions added in the package are : - get_egg_info(project_name) -> path or None - Scans all site-packages directories and looks for all `project_name.egg-info` - directories. Returns the directory path that contains a PKG-INFO that matches + Scans all elements in `sys.path` and looks for all directories ending with + `.egg-info`. Returns the directory path that contains a PKG-INFO that matches `project_name` for the `name` metadata. Notice that there should be at most one result. The first result founded will be returned. If the directory is not found, returns None. + XXX The implementation of `get_egg_info` will focus on minimizing the I/O + accesses. + - get_metadata(project_name) -> DistributionMetadata or None Uses `get_egg_info` to get the `PKG-INFO` file, and returns a