Hi,

This is the only obvious up-to-date address or mailing list I could find, so 
feel free to direct me where I should go.

I'm a Linux user, and normally I have a 0027 umask. This means that when I 
build a Python package using distutils, the files in the build directory are 
not world-readable (Python copies them there without preserving permissions, 
according to the comment in build_py.py:

         # XXX copy_file by default preserves mode, which appears to be the
         # wrong thing to do: if a file is read-only in the working
         # directory, we want it to be installed read/write so that the next
         # installation of the same module distribution can overwrite it
         # without problems.  (This might be a Unix-specific issue.)  Thus
         # we turn off 'preserve_mode' when copying to the build directory,
         # since the build directory is supposed to be exactly what the
         # installation will look like (ie. we preserve mode when
         # installing).

This is all very well, but turning off "preserve_mode" is not enough to 
ensure this in the presence of a restrictive umask like mine; the 
permissions need rather to be explicitly set (as done for example by the GNU 
install tool, though that assumes that permissions are set at install time 
rather than build time).

The obvious workaround is for me to remember to change my umask when I'm 
building python packages. That's OK, but is this problem recognised as such 
and might it be fixed in future?

-- 
http://rrt.sc3d.org/ | God is the name of our ignorance (Grayling)
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to