From 463e07e68ee64bb15aea8516239908e3f6d4f40f Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 5 Apr 2013 17:10:55 -0400 Subject: Update release notes and comment to provide a bit more detail about the issue and to be more consistent with the solution. --HG-- branch : distribute extra : rebase_source : c813a29e831f266d427d4a4bce3da97f475a8eee --- CHANGES.txt | 14 +++++++++----- setuptools/command/easy_install.py | 5 +++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 479850a7..16461a21 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -2,12 +2,16 @@ 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 + `_, 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 diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index ba98fa13..98af2620 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -523,8 +523,9 @@ Please make the appropriate changes for your system and try again. 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) -- cgit v1.2.3