[Distutils] Equivalent of config.h?

Denis Jasselette dionysos_13 at yahoo.fr
Fri Jun 18 19:14:48 CEST 2010

David Cournapeau wrote : 
> What is your umask (when the .py are non world-readable) ? I believe
> sudo has a different way of handling umask (compared to using straight
> root account). You could try installing as root instead of using sudo,
> and/or checking your sudoers for umask settings,

My umask is 0077 and it's set globally, i.e., for the root account as
well. I don't know exactly how sudo deals with it. However, I don't
think sudo is the problem here, as I said before, permissions are set
during the building.

Anyway, I solved this by setting a less restrictive umask (if available)
explicitly in setup.py.

More information about the Distutils-SIG mailing list