[Python-Dev] Added platform-specific directories to sys.path
Michael Hudson
mwh@python.net
22 Jul 2002 11:03:10 +0100
barry@zope.com (Barry A. Warsaw) writes:
> >>>>> "GvR" == Guido van Rossum <guido@python.org> writes:
>
> GvR> Traditionally, on Unix per-user extensions are done by
> GvR> pointing PYTHONPATH to your per-user directory (-ies) in your
> GvR> .profile.
>
> Or adding them to sys.path via your $PYTHONSTARTUP file.
That only helps for interactive sessions...
> OTOH, it might be nice if the distutils `install' command had some
> switches to make installing in some of these common alternative
> locations a little easier. That might dovetail nicely if/when we
> decide to add a site-updates directory to sys.path.
I don't see what's so very difficult about
$ python setup.py install --prefix=$HOME
but maybe I'm odd.
Cheers,
M.
--
$ head -n 2 src/bash/bash-2.04/unwind_prot.c
/* I can't stand it anymore! Please can't we just write the
whole Unix system in lisp or something? */
-- spotted by Rich van der Hoff