[Python-checkins] r53674 - sandbox/branches/setuptools-0.6/pkg_resources.py sandbox/branches/setuptools-0.6/pkg_resources.txt
phillip.eby
python-checkins at python.org
Thu Feb 8 21:11:22 CET 2007
Author: phillip.eby
Date: Thu Feb 8 21:11:22 2007
New Revision: 53674
Modified:
sandbox/branches/setuptools-0.6/pkg_resources.py
sandbox/branches/setuptools-0.6/pkg_resources.txt
Log:
Fix extracted C extensions not having executable permissions under Cygwin.
(backport from trunk)
Modified: sandbox/branches/setuptools-0.6/pkg_resources.py
==============================================================================
--- sandbox/branches/setuptools-0.6/pkg_resources.py (original)
+++ sandbox/branches/setuptools-0.6/pkg_resources.py Thu Feb 8 21:11:22 2007
@@ -883,6 +883,23 @@
return target_path
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
def postprocess(self, tempname, filename):
"""Perform any platform-specific postprocessing of `tempname`
@@ -897,7 +914,31 @@
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):
Modified: sandbox/branches/setuptools-0.6/pkg_resources.txt
==============================================================================
--- sandbox/branches/setuptools-0.6/pkg_resources.txt (original)
+++ sandbox/branches/setuptools-0.6/pkg_resources.txt Thu Feb 8 21:11:22 2007
@@ -1692,6 +1692,9 @@
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.
More information about the Python-checkins
mailing list