This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tarek
Recipients gsakkis, tarek
Date 2009-02-17.23:24:38
SpamBayes Score 1.1063084e-06
Marked as misclassified No
Message-id <1234913079.7.0.496432931606.issue5300@psf.upfronthosting.co.za>
In-reply-to
Content
> I believe that the default behavior should be changed to preserve 
> all permissions, with the possible exception of setting u+w. 
> Even that might be unnecessary; AFAIK to delete a file you need 
> write permissions only to its parent directory, not to the 
> file itself.

The u+w setting could also be done on the fly by copy_file at
installation time. e.g. when overwriting a read-only file.


> In my case, some 
>  executable files ceased to be executable after installation.

what is your use case of having executable file here ?

I'd use the 'scripts' metadata for that ?


> Even if the current behavior is deemed correct, at the very least 
> the code should be refactored to allow easy overriding.
> Currently build_module and build_package_data pass 
> preserve_mode=False in their
> body, so I had to copy and paste the whole methods 
> just to set preserve_mode=True.

But How do you handle the overwrite of a read-only file in your code then ?
History
Date User Action Args
2009-02-17 23:24:39tareksetrecipients: + tarek, gsakkis
2009-02-17 23:24:39tareksetmessageid: <1234913079.7.0.496432931606.issue5300@psf.upfronthosting.co.za>
2009-02-17 23:24:38tareklinkissue5300 messages
2009-02-17 23:24:38tarekcreate