aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsetuptools/package_index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index c02f3b4e..ad996e57 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -182,7 +182,7 @@ class PackageIndex(Environment):
self.warn("Not found: %s", url)
return
- if os.path.isdir(fn):
+ if os.path.isdir(fn) and not nested:
path = os.path.realpath(fn)
for item in os.listdir(path):
self.process_filename(os.path.join(path,item), True)