<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: 'Lucida Console', sans-serif;">
<div>Hey there,</div>
<div><br>
</div>
<div>I’m using python 2.7/setuptools 3.6 to build an egg of my code (checked into perforce) using my setup.py. This egg gets installed into a virtualenv.</div>
<div><br>
</div>
<div>On osx/darwin this works fine.</div>
<div><br>
</div>
<div>On windows, the bdist creates scripts and data whose permissions are read-only (attrib+r), and they cannot overwrite themselves in a subsequent build of that egg. Similarly, re-installing a new egg using virtualenv fails because the installed egg’s scripts
 and data are not writable.</div>
<div><br>
</div>
<div>I thought it might be that when checked out from perforce, the permissions stayed read-only during the build of the egg, so I set all the files in my module to be read-write before building. Even when the original source files’ permissions are all set
 to read-write, the generated bdist egg script/data content end up becoming read-only.</div>
<div><br>
</div>
<div>Couple of questions.</div>
<ol>
<li>Since it works fine on osx, it seems like a bug in the windows implementation of setuptools. Is this known behavior, is there a reason for setting this on scripts/data on windows?</li><li>Is there a hook in the bdist egg build process I can use to set the attributes of the files correctly when the bdist egg is made? How/where should I define this in my setup.py?</li></ol>
<div>Kind regards,</div>
<div><br>
</div>
<div>-e</div>
</body>
</html>