Commits

mamico  committed 738ad80

walk directories on PackageIndex.process_filename

  • Participants
  • Parent commits f90c670

Comments (0)

Files changed (2)

   does so by considering all subdirectories of the start directory that
   aren't regular packages to be PEP 420 namespace packages (on Python 3.3+
   only).
+* walk directories on PackageIndex.process_filename
 
 ---
 3.3

File setuptools/package_index.py

         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)
+                self.process_filename(
+                    os.path.join(path,item),
+                    nested=os.path.isfile(os.path.join(path,item))
+                )
 
         dists = distros_for_filename(fn)
         if dists: