Commits

Alice Bevan-McGregor  committed 0f4f96e

Fixed empty folder issue during upload_docs.

  • Participants
  • Parent commits e2de9f1
  • Branches 0.6-maintenance

Comments (0)

Files changed (1)

File setuptools/command/upload_docs.py

         tmp_file = os.path.join(tmp_dir, "%s.zip" % name)
         zip_file = zipfile.ZipFile(tmp_file, "w")
         for root, dirs, files in os.walk(self.upload_dir):
-            if not files:
+            if root == self.upload_dir and not files:
                 raise DistutilsOptionError(
                     "no files found in upload directory '%s'"
                     % self.upload_dir)