[Distutils] Script Files, Prefix, and Uninstallation

natan yellin aantny at gmail.com
Sun May 4 20:24:33 CEST 2008


On Sun, May 4, 2008 at 9:13 PM, Phillip J. Eby <pje at telecommunity.com>
wrote:

> 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.


Sorry. I forgot to change the address.

>
>
>
>  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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20080504/79caf5b8/attachment.htm>


More information about the Distutils-SIG mailing list