| 48 | |
| 49 | |
| 50 | == Download Dependencies and Configure PYTHONPATH == |
| 51 | |
| 52 | In the system that has been tested, one python package is needed for geni-lib, which is lxml. |
| 53 | |
| 54 | * Install lxml python packages |
| 55 | |
| 56 | If you are using !MacPort, install lxml using |
| 57 | {{{ |
| 58 | $ sudo port install python27-lxml |
| 59 | }}} |
| 60 | |
| 61 | * Add PYTHONPATH: |
| 62 | |
| 63 | For MacOS experimenters, you can add following lines to the end of your ~/.profile |
| 64 | {{{ |
| 65 | # add python path |
| 66 | export PYTHONPATH=$PYTHONPATH:<your path to geni-lib> |
| 67 | }}} |
| 68 | Then, run |
| 69 | {{{ |
| 70 | source ~/.profile |
| 71 | }}} |
| 72 | |
| 73 | * Optional Step: Switch Python Version |
| 74 | |
| 75 | Sometimes you may have problems with python versions if you have two different versions of python installed. If you installed python27 and python modules from !MacPort, so you may need to select python27 installed by !MacPort as your default python. |
| 76 | {{{ |
| 77 | $ sudo port select --set python python27 |
| 78 | }}} |
| 79 | |
82 | | * Add PYTHONPATH |
83 | | |
84 | | For MacOS experimenters, you can add following lines to the end of your ~/.profile |
85 | | {{{ |
86 | | # add python path |
87 | | export PYTHONPATH=$PYTHONPATH:<your path to geni-lib> |
88 | | }}} |
89 | | Then, run |
90 | | {{{ |
91 | | source ~/.profile |
92 | | }}} |
93 | | |
94 | | * Install lxml python packages |
95 | | |
96 | | If you are using !MacPort, install lxml using |
97 | | {{{ |
98 | | $ sudo port install python27-lxml |
99 | | }}} |
100 | | |
101 | | * Optional Steps for Configuration |
102 | | |
103 | | Sometimes you may have problems with python versions if you have two different versions of python installed. If you installed python27 and python modules from !MacPort, so you may need to select python27 installed by !MacPort as your default python. |
104 | | {{{ |
105 | | $ sudo port select --set python python27 |
106 | | }}} |
| 114 | |
| 115 | |
| 116 | |