aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rwxr-xr-xpythoneggs.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 007b65f..fb3c0c1 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- support being passed the egg-info directory
+
Version 2.5 - 1 October 2014, by Thierry Vignaud
- do not emit PHP requires for package's own files
diff --git a/pythoneggs.py b/pythoneggs.py
index 23a595f..367aad1 100755
--- a/pythoneggs.py
+++ b/pythoneggs.py
@@ -88,7 +88,10 @@ for f in files:
metadata = PathMetadata(path_item, parent_name)
else:
path_item = f
- metadata = FileMetadata(f)
+ if isdir(f):
+ metadata = PathMetadata(parent_name, f)
+ else:
+ metadata = FileMetadata(f)
dist = Distribution.from_location(path_item, dist_name, metadata)
if not dist.py_version:
continue