ebuild uses doinst, rather than dobin, which apparently results in the module files being installed with the default umask. Reproduce: emerge dev-python/imaging, ls -ld /usr/lib/python2.3/site-packages/PIL
I set umask to 077 both in my running shell and in /etc/profile, then emerged imaging (1.1.4-r1, x86 stable version). The permissions on /usr/lib/python${PYVER}/site-packages/PIL after this were 755, contents were 644. Also this dir or its contents are not installed by doinst (or doins) (nor should they be imho, these files shouldn't be executable), they are installed through distutils (python setup.py install). The 3 headers that go into /usr/include/python${PYVER} that *are* installed by doins also had proper (644) permissions. In other words, how do I reproduce this?
unable to reproduce either.