Commits

Anonymous committed cfc7165

Warn if filenames cannot be added to the filelist.

  • Participants
  • Parent commits 123b6b5

Comments (0)

Files changed (2)

File setuptools/command/egg_info.py

         if item.endswith('\r'):     # Fix older sdists built on Windows
             item = item[:-1]
         path = convert_path(item)
-        if os.path.exists(path):
-            self.files.append(path)
+        try:
+            if os.path.exists(path):
+                self.files.append(path)
+            else:
+                log.warn("%r not found -- skipping", path)
+        except UnicodeEncodeError:
+            log.warn("%r not %s encodable -- skipping", path,
+                sys.getfilesystemencoding())
 
 
 

File setuptools/tests/test_sdist.py

         open(filename, 'w').close()
 
         # Re-read manifest
+        cmd.filelist.files = []
         quiet()
         try:
             cmd.read_manifest()
             open(filename, 'w').close()
 
             # Re-read manifest
+            cmd.filelist.files = []
             quiet()
             try:
                 try: