[Distutils] Script Files, Prefix, and Uninstallation

Phillip J. Eby pje at telecommunity.com
Sun May 4 20:13:50 CEST 2008


At 08:56 PM 5/4/2008 +0300, natan yellin wrote:
>On Sun, May 4, 2008 at 8:51 PM, Phillip J. Eby 
><<mailto:pje at telecommunity.com>pje at telecommunity.com> wrote:
>At 11:04 AM 5/4/2008 +0300, natan yellin wrote:
>Hello,
>I'm relatively new to python, and I have a few questions related to distutils.
>
>1) If I attempt to install script files without a .py extension, 
>distutils installs them twice- once with a .py extension and once 
>without. Is there a way to work around that?
>
>
>I've never seen the behavior you're describing.  You should probably 
>post your setup.py for us to see what you're doing.
>
>I've attached it.

By "post", I mean posting it to the distutils-sig.  I don't do 
private tech support - especially not for the distutils.


>2) Is there a way to change the default install prefix from /usr to 
>/usr/local?
>
>
>You can change that systemwide by creating the appropriate config 
>file.  Please see the configuration file section of the "Installing 
>Python Modules" manual.
>
>Is there any way to change it within the script? It makes more sense 
>to install my particular app into /usr/local than /usr.

It can be changed in lots of places, including the script or 
setup.cfg.  Please see the manual.



More information about the Distutils-SIG mailing list