[Distutils] setting the right owner of local subdirectories

Antoine Pitrou antoine.pitrou at wengo.fr
Wed Oct 25 16:02:02 CEST 2006

Le mercredi 25 octobre 2006 à 22:05 +1000, Ben Finney a écrit :
> Antoine Pitrou <antoine.pitrou at wengo.fr> writes:
> > But an annoying side-effect is that, when you first run "sudo python
> > setup.py develop" (or "install"), it also creates directories in the
> > local directory under the root user.
> You can configure sudo to set HOME to the home directory of the target
> user. To do this every time the target is 'root', edit sudoers and add
> this line:

Sorry, my wording was misleading.
I meant that setuptools creates subdirectories inside the local project
directory (which is fine), and if it was invoked with "sudo" those
subdirectories are owned by the root user (which is less fine).

More information about the Distutils-SIG mailing list