<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=603503714-18102006>I am trying create 
eggs for a package that relies on a compiled executable that is distributed with 
the package.&nbsp; I can get the executable into the egg fine.&nbsp; 
I</SPAN></FONT><FONT face=Arial size=2><SPAN class=603503714-18102006>t is 
declared as package_data and I set zip_safe=False to force easy_install to 
unpack the egg.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=603503714-18102006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=603503714-18102006>My problem is that 
the executable is always extracted without execution permissions (our platform 
is UNIX).&nbsp; After some experimenting this appears to be a general problem 
with the zip file module not honouring execution permissions.&nbsp; I know 
permissions can be set in zip files because the InfoZip tools do 
it.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=603503714-18102006>Currently I have a 
hack working that tries to change the permissions on the executable when the 
package is imported but this won't work if the egg is installed by a different 
user to the importer.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=603503714-18102006>I am wondering if 
there is a way round this with setuptools.&nbsp; Some sort of hook to fix 
permissions when unpacking a non-zipsafe egg would be good.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=603503714-18102006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=603503714-18102006>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=603503714-18102006>Stephen.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=603503714-18102006></SPAN></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Arial size=2>---</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Stephen Pascoe&nbsp; 01235 
445980</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>British Atmospheric Data 
Centre</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Rutherford Appleton Laboratory, 
CCLRC</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>