pypa/pip — pull request #1146 by qwcode (2013-08-17 06:42:12+00:00)
Title: tar/zip unpack changes

fixes for #1133 and #317

the changes:
- for zips, removed the code that was added in 1.4 that preserved all permissions (fixes #1133)
- for zips and tars, regular files with any execute perms, now effectively get chmod +x (fixes #317 you can install ctypes now)

so the net result:

archive members are written based on system defaults and umask (i.e. permissions are not preserved), except that regular file members with any execute permissions (user, group, or world) have the equivalent of "chmod +x" applied after being written. Note that for windows, any execute changes using os.chmod are no-ops per the python docs.

Note: this is different than setuptools, which just preserves all permissions.