python question
Ted Roche
tedroche at tedroche.com
Thu Jul 31 08:16:22 EDT 2008
Jeff Macdonald wrote:
> it has been ages since I've played with python. Is there an equivalent
> way to do this perl command in python with a 3rd party module?
>
> $ perl Makefile.PL PREFIX=/home/jeff/projects/program/lib
>
> All is can find is:
>
> $ python setup.py install
>
>
Jeff:
If your purpose is to create a "private stash" of python modules, rather
than installing a new module to the standard location, you can usually
do it with an option like:
python setup.py install --home=<dir>
assuming that the Python module uses the standard DistUtils installer.
See:
http://docs.python.org/inst/alt-install-windows.html#SECTION000310000000000000000
and parent document:
http://docs.python.org/inst/inst.html
for more details and variations.
--
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com
More information about the gnhlug-discuss
mailing list