I am configuring a distutils-based setup.py for a python module that is to be installed on a heterogeneous set of resources.  Due to the heterogeneity, the location where the module is installed is not the same on each host however disutils picks the host-specific location.
I find that the module is installed without o+rx permissions using disutils (in spite of setting umask ahead of running setup.py).  One solution is to manually correct this problem, however I would like an automated means that works on heterogeneous install targets.
For example, is there a way to extract the ending location of the installation from within setup.py?
Any other suggestions?
I find that the module is installed without o+rx permissions using disutils

I don’t remember right now if distutils copies the files with their rights as is or if it just copies the contents.

(in spite of setting umask ahead of running setup.py)

I’m not sure how umask and file copying from Python should interact; does umask apply to the system calls or does it need to be explicitly heeded by Python code?

For example, is there a way to extract the ending location of the installation
  from within setup.py?

There is one, a bit convoluted.  What would you do with that information?
setting permissions of python module (python setup install)