summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
authorphillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771>2007-01-09 18:57:23 +0000
committerphillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771>2007-01-09 18:57:23 +0000
commit2dfc4f66a7ff32f453a66d0086b5a14449ecd6c3 (patch)
treeff767c15c32c240c5d85455a956dbfdafb4e3532 /setuptools/command
parente021fe119ca98f96b5a3957c2a7b3903b1c08ed6 (diff)
downloadpython-setuptools-2dfc4f66a7ff32f453a66d0086b5a14449ecd6c3.tar.gz
Fix not making Cygwin .dll's executable when installing in non-zip-safe
mode. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@53315 6015fed2-1504-0410-9fe1-9d1591cc4771
Diffstat (limited to 'setuptools/command')
-rwxr-xr-xsetuptools/command/easy_install.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 72207f1..52a6865 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -983,16 +983,22 @@ See the setuptools documentation for the "develop" command for more info.
return dst # only unpack-and-compile skips files for dry run
def unpack_and_compile(self, egg_path, destination):
- to_compile = []
+ to_compile = []; to_chmod = []
def pf(src,dst):
if dst.endswith('.py') and not src.startswith('EGG-INFO/'):
to_compile.append(dst)
- self.unpack_progress(src,dst)
+ self.unpack_progress(src,dst); to_chmod.append(dst)
return not self.dry_run and dst or None
unpack_archive(egg_path, destination, pf)
self.byte_compile(to_compile)
+ if not self.dry_run:
+ flags = stat.S_IXGRP|stat.S_IXGRP
+ for f in to_chmod:
+ mode = ((os.stat(f)[stat.ST_MODE]) | 0555) & 07777
+ log.debug("changing mode of %s to %o", f, mode)
+ os.chmod(f, mode)
def byte_compile(self, to_compile):
@@ -1017,12 +1023,6 @@ See the setuptools documentation for the "develop" command for more info.
-
-
-
-
-
-
def no_default_version_msg(self):
return """bad install directory or PYTHONPATH