setting permissions of python module (python setup install)

Posted by SetJmp on Stack Overflow See other posts from Stack Overflow or by SetJmp
Published on 2010-05-02T15:39:27Z Indexed on 2010/05/02 15:48 UTC
Read the original article Hit count: 390

Filed under:
|
|
|

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?

Thanks!

SetJmp

© Stack Overflow or respective owner

Related posts about permissions

Related posts about python