Commits

rlacko  committed e676171

Fix for PermissionError when installing on Python 3.3: __pycache__ dir inside distutils scripts metadata directory

  • Participants
  • Parent commits 188dcdb

Comments (0)

Files changed (2)

 CHANGES
 =======
 
+------------
+Next version
+------------
+
+- Fix for distutils scripts installation on Python 3, related to
+  ``__pycache__`` directories.
+
 ------
 0.6.35
 ------

File setuptools/command/easy_install.py

         """Write all the scripts for `dist`, unless scripts are excluded"""
         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                
                 self.install_script(
                     dist, script_name,
                     dist.get_metadata('scripts/'+script_name)