Commit 86a22eb8 authored by rlacko's avatar rlacko

Fix for PermissionError when installing on Python 3.3: __pycache__ dir inside...

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

--HG--
branch : distribute
extra : rebase_source : e6761715dec0e43a90b54c26f25fa68d97c97938
parent 7e2bae18
......@@ -2,6 +2,13 @@
CHANGES
=======
------------
Next version
------------
- Fix for distutils scripts installation on Python 3, related to
``__pycache__`` directories.
------
0.6.35
------
......
......@@ -522,6 +522,9 @@ Please make the appropriate changes for your system and try again.
"""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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment