Commits

Jason R. Coombs committed c813a29

Update release notes and comment to provide a bit more detail about the issue and to be more consistent with the solution.

  • Participants
  • Parent commits e676171
  • Tags 0.6.36

Comments (0)

Files changed (2)

 CHANGES
 =======
 
-------------
-Next version
-------------
+------
+0.6.36
+------
 
-- Fix for distutils scripts installation on Python 3, related to
-  ``__pycache__`` directories.
+* Pull Request #35: In `Buildout issue 64
+  <https://github.com/buildout/buildout/issues/64>`_, it was reported that
+  under Python 3, installation of distutils scripts could attempt to copy
+  the ``__pycache__`` directory as a file, causing an error, apparently only
+  under Windows. Easy_install now skips all directories when processing
+  metadata scripts.
 
 ------
 0.6.35

setuptools/command/easy_install.py

         if not self.exclude_scripts and dist.metadata_isdir('scripts'):
             for script_name in dist.metadata_listdir('scripts'):
                 if dist.metadata_isdir('scripts/' + script_name):
-                    # Probably Python 3 __pycache__ directory.
-                    continue                
+                    # The "script" is a directory, likely a Python 3
+                    # __pycache__ directory, so skip it.
+                    continue
                 self.install_script(
                     dist, script_name,
                     dist.get_metadata('scripts/'+script_name)