aboutsummaryrefslogtreecommitdiffstats
path: root/pythoneggs.py
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2014-10-14 20:49:00 +0000
committerPascal Terjan <pterjan@gmail.com>2014-10-14 20:49:45 +0000
commitc4ab8fc45f49e5490f6193c99fb945cc95961023 (patch)
treef303964bdd985854619ab20cb8a0de9cb1342028 /pythoneggs.py
parent1bf0de883294342847c7d886689b2f2e614716e5 (diff)
downloadrpm-setup-c4ab8fc45f49e5490f6193c99fb945cc95961023.tar
rpm-setup-c4ab8fc45f49e5490f6193c99fb945cc95961023.tar.gz
rpm-setup-c4ab8fc45f49e5490f6193c99fb945cc95961023.tar.bz2
rpm-setup-c4ab8fc45f49e5490f6193c99fb945cc95961023.tar.xz
rpm-setup-c4ab8fc45f49e5490f6193c99fb945cc95961023.zip
Support being passed the egg-info directory
Diffstat (limited to 'pythoneggs.py')
-rwxr-xr-xpythoneggs.py5
1 files changed, 4 insertions, 1 deletions
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