aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2007-02-08 20:11:22 +0000
committerPJ Eby <distutils-sig@python.org>2007-02-08 20:11:22 +0000
commita494dd32ae6289c1855bd4a57eb20861acbb6aa8 (patch)
treea3934e38a0fc4053c4d1f4c73565a34a42e52501
parent849a997fd01b173fbc0eda32f9a6bdb8232c6f11 (diff)
downloadexternal_python_setuptools-a494dd32ae6289c1855bd4a57eb20861acbb6aa8.tar.gz
external_python_setuptools-a494dd32ae6289c1855bd4a57eb20861acbb6aa8.tar.bz2
external_python_setuptools-a494dd32ae6289c1855bd4a57eb20861acbb6aa8.zip
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
-rw-r--r--pkg_resources.py43
-rwxr-xr-xpkg_resources.txt3
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.