diff options
| -rw-r--r-- | pkg_resources.py | 43 | ||||
| -rwxr-xr-x | pkg_resources.txt | 3 |
2 files changed, 45 insertions, 1 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index ad28b79f..13a4eee0 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -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): diff --git a/pkg_resources.txt b/pkg_resources.txt index 8e5e335e..6bde6342 100755 --- a/pkg_resources.txt +++ b/pkg_resources.txt @@ -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. |
