WebFaction Easy-Install useage.
Posted by Richard Cooper | Filed under Coding, General, memory
I’m posting this here so that I can remember it :)
If you need a Python library to be available to *all* of your Python apps, then install it in the $HOME/lib/python2.5 directory. A shorter version of the command is:
Code:
1 | easy_install-2.5 -s $HOME/bin -d $HOME/lib/python2.5 the_module_name |
If you need a Python library to be available to *one* of your Python apps, then install it in the $HOME/webapps/
Code:
1 | PYTHONPATH=$HOME/webapps/<appname>/lib/python2.5 easy_install-2.5 -s $HOME/webapps/<appname>/bin -d $HOME/webapps/<appname>/lib/python2.5 the_module_name |
Tags: easy_install, python, webfaction