making symlinks with distutils

Sylvain Thenault sylvain.thenault at logilab.fr
Fri Feb 4 08:16:56 EST 2005


On Fri, 04 Feb 2005 04:59:51 -0800, Michele Simionato wrote:

> Sylvain Thenault:
>> Actually it does install it is $PREFIX/bin.
> 
> Aha! And how do I set $PREFIX? Is it a Unix environment variable or is it
> a keyword argument in setup? Something like setup( prefix="/usr") ?

it's a command line argument of the "install" command:

python setup.py install --prefix=~/

or

python setup.py install --home=~/

(the difference between --home and --prefix is that the former will
install library in $PREFIX/lib/pythonX.Y/site-packages while the latter
will install it in $PREFIX/lib/python/

-- 
Sylvain Thénault                               LOGILAB, Paris (France).

http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org





More information about the Python-list mailing list