From 2b032490c1059a157383d736fae4e327c7c78b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tarek=20Ziad=C3=A9?= Date: Thu, 14 May 2009 21:52:58 +0000 Subject: [PATCH] more details on get_egg_info --- pep-0376.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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