Commit a494dd32 authored by PJ Eby's avatar PJ Eby

Fix extracted C extensions not having executable permissions under Cygwin.

(backport from trunk)

--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053674
parent 849a997f
......@@ -883,6 +883,23 @@ variable to point to an accessible directory.
return target_path
def postprocess(self, tempname, filename):
"""Perform any platform-specific postprocessing of `tempname`
......@@ -897,7 +914,31 @@ variable to point to an accessible directory.
is the name it will be renamed to by the caller after this routine
returns.
"""
# XXX
if os.name == 'posix':
# Make the resource executable
mode = ((os.stat(tempname).st_mode) | 0555) & 07777
os.chmod(tempname, mode)
def set_extraction_path(self, path):
......
......@@ -1692,6 +1692,9 @@ File/Path Utilities
Release Notes/Change History
----------------------------
0.6c6
* Fix extracted C extensions not having executable permissions under Cygwin.
0.6c4
* Fix "dev" versions being considered newer than release candidates.
......
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