Project

General

Profile

Actions

Install Appion Packages » History » Revision 11

« Previous | Revision 11/41 (diff) | Next »
Neil Voss, 05/12/2010 10:15 AM


Install Appion Packages

Install the package in each folder with commands like these

TODO: move these into a single installer, ask Jim

cd /your_download_area/

cd myami/leginon
sudo python setup.py install

cd ../pyami
sudo python setup.py install

cd ../pyscope
sudo python setup.py install

cd ../sinedon
sudo python setup.py install

cd ../imageviewer
sudo python setup.py install

cd ../appion
sudo python setup.py install --install-scripts=/usr/local/bin

#binary packages

cd ../numextension
python setup.py build
sudo python setup.py install

cd ../libcv
python setup.py build
sudo python setup.py install

cd ../appion/radermacher
python setup.py build
sudo python setup.py install

python-site-package-path: where the installed python packages went:

Python installer put the packages you installed to its site-packages directory. This enable all users on the same computer to access them. The easiest way to find where your installed package is called by python is to load a module from the package using interactive python command lines like this:

  • Start python command line from shell
    python
  • Import a module from the package. Let's try sinedon here. All packages installed through the above setup.py script should go to the same place.
    python> import sinedon
  • If the module is loaded successfully, call the module attribute path (two underscrolls before "path" and two underscrolls after) will return the location of the module it is loaded from
    python> sinedon.__path__
    #RETURNS, For example,
    python> <module 'sinedon' from '/usr/lib/python2.5/site-packages/sinedon/__init__.pyc'> 
    

In this case, /usr/lib/python2.5/site-packages/ is your python-site-package-path. If you go to that directory, you will find all the packages you just installed.


< Perform system check | Configure leginon.cfg >


Updated by Neil Voss over 14 years ago · 11 revisions