diff --git a/pkg_resources.py b/pkg_resources.py index 4a9152b..89e60a6 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -956,10 +956,10 @@ variable to point to an accessible directory. returns. """ - if os.name == 'posix': - # Make the resource executable - mode = ((os.stat(tempname).st_mode) | 0555) & 07777 - os.chmod(tempname, mode) + #if os.name == 'posix': + # # Make the resource executable + # mode = ((os.stat(tempname).st_mode) | 0555) & 07777 + # os.chmod(tempname, mode) diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index dae506b..8cbbfd8 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -983,23 +983,24 @@ 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_chmod = [] + to_compile = [] + #to_chmod = [] def pf(src,dst): if dst.endswith('.py') and not src.startswith('EGG-INFO/'): to_compile.append(dst) - to_chmod.append(dst) - elif dst.endswith('.dll') or dst.endswith('.so'): - to_chmod.append(dst) + #to_chmod.append(dst) #unnecessary security risk + #elif dst.endswith('.dll') or dst.endswith('.so'): # Doesn't make sense for .dll on windows, + # to_chmod.append(dst) # is not required for .so. If desired set source permissions. self.unpack_progress(src,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: - for f in to_chmod: - mode = ((os.stat(f)[stat.ST_MODE]) | 0555) & 07755 - chmod(f, mode) + #if not self.dry_run: + # for f in to_chmod: + # mode = ((os.stat(f)[stat.ST_MODE]) | 0555) & 07755 + # chmod(f, mode) def byte_compile(self, to_compile): from distutils.util import byte_compile