Install Appion Packages » History » Revision 3
Revision 2 (Amber Herold, 04/15/2010 02:52 PM) → Revision 3/41 (Amber Herold, 04/22/2010 01:47 PM)
h1. Install Appion Packages
h3. Install the package in _each folder_ with commands like these
*TODO: move these into a single installer, ask Jim*
<pre>
cd /your_download_area/myami/leginon
python setup.py install
cd ../pyami
python setup.py install
cd ../pyScope
python setup.py install
cd ../sinedon
python setup.py install
cd ../numextension
python setup.py install
cd ../libcv
python setup.py install
cd ../imageviewer
python setup.py install
</pre>
h3. 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
<pre>> python</pre>
* 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.
<pre>python> import sinedon</pre>
* 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
<pre>
python> sinedon.__path__
RETURNS, For example,
python> <module 'sinedon' from '/usr/lib/python2.5/site-packages/sinedon/__init__.pyc'>
</pre>
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|< Perform system check]] | [[Configure leginon.cfg|Configure leginon.cfg >]]
______