Install Appion Packages » History » Version 8
Neil Voss, 05/12/2010 10:06 AM
1 | 1 | Amber Herold | h1. Install Appion Packages |
---|---|---|---|
2 | |||
3 | h3. Install the package in _each folder_ with commands like these |
||
4 | |||
5 | *TODO: move these into a single installer, ask Jim* |
||
6 | |||
7 | <pre> |
||
8 | cd /your_download_area/myami/leginon |
||
9 | 4 | Neil Voss | sudo python setup.py install |
10 | 1 | Amber Herold | |
11 | cd ../pyami |
||
12 | 4 | Neil Voss | sudo python setup.py install |
13 | 8 | Neil Voss | |
14 | 5 | Neil Voss | cd ../pyscope |
15 | 4 | Neil Voss | sudo python setup.py install |
16 | 8 | Neil Voss | |
17 | 1 | Amber Herold | cd ../sinedon |
18 | 4 | Neil Voss | sudo python setup.py install |
19 | 8 | Neil Voss | |
20 | cd ../imageviewer |
||
21 | sudo python setup.py install |
||
22 | |||
23 | cd ../appion |
||
24 | sudo python setup.py install |
||
25 | |||
26 | #binary packages |
||
27 | |||
28 | 4 | Neil Voss | cd ../numextension |
29 | 1 | Amber Herold | python setup.py build |
30 | 6 | Neil Voss | sudo python setup.py install |
31 | 8 | Neil Voss | |
32 | 4 | Neil Voss | cd ../libcv |
33 | 1 | Amber Herold | python setup.py build |
34 | sudo python setup.py install |
||
35 | 8 | Neil Voss | |
36 | 7 | Neil Voss | cd ../appion/radermacher |
37 | 6 | Neil Voss | python setup.py build |
38 | 4 | Neil Voss | sudo python setup.py install |
39 | 1 | Amber Herold | </pre> |
40 | |||
41 | h3. python-site-package-path: where the installed python packages went: |
||
42 | |||
43 | 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: |
||
44 | |||
45 | * Start python command line from shell |
||
46 | <pre>> python</pre> |
||
47 | |||
48 | * 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. |
||
49 | <pre>python> import sinedon</pre> |
||
50 | |||
51 | |||
52 | * 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 |
||
53 | <pre> |
||
54 | python> sinedon.__path__ |
||
55 | |||
56 | RETURNS, For example, |
||
57 | python> <module 'sinedon' from '/usr/lib/python2.5/site-packages/sinedon/__init__.pyc'> |
||
58 | </pre> |
||
59 | 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. |
||
60 | 2 | Amber Herold | |
61 | ______ |
||
62 | |||
63 | [[Perform system check|< Perform system check]] | [[Configure leginon.cfg|Configure leginon.cfg >]] |
||
64 | 3 | Amber Herold | |
65 | ______ |