3 | | Using virtualenv allows multiple Python applications to each have an independent set of Libraries to allow easier management of dependencies. |
| 3 | Using [http://pypi.python.org/pypi/virtualenv virtualenv] allows multiple Python applications to each have an independent set of Libraries to allow easier management of dependencies. |
| 4 | |
| 5 | === Install Non-Python Dependencies === |
| 6 | You need to install {{{libxml2, python-devel, and libgeos_c}}}. |
| 7 | |
| 8 | On Ubuntu, you can do this by running: |
| 9 | {{{ |
| 10 | sudo apt-get install libxml2 libxml2-dev libxslt1-dev python-dev libgeos-c1 libfreetype6-dev |
| 11 | }}} |
| 12 | |
| 88 | |
| 89 | == Optional: Use virtualenvwrapper == |
| 90 | It's possible to use [http://www.doughellmann.com/projects/virtualenvwrapper/ virtualenvwrapper], to simplify the installation process. The below instructions assume that you have installed and configured virtualenvwrapper. |
| 91 | |
| 92 | === Create and Activate the VirtualEnv === |
| 93 | Create the virtualenv by running |
| 94 | {{{ |
| 95 | mkvirtualenv --no-site-packages sahana-eden |
| 96 | }}} |
| 97 | |
| 98 | This will automatically run |
| 99 | {{{ |
| 100 | workon sahana-eden |
| 101 | }}} |
| 102 | which activates the virtualenv, by setting the necessary environment variables. |
| 103 | |
| 104 | === Download Web2Py and Sahana Eden === |
| 105 | This can be installed anywhere, no need for it to be in the !VirtualEnv folder |
| 106 | |
| 107 | See wiki:InstallationGuidelinesDeveloper#Web2Py for instructions. |
| 108 | |
| 109 | === Install Python Dependencies with Pip === |
| 110 | {{{ |
| 111 | cd web2py/applications/eden |
| 112 | pip install -r requirements.txt |
| 113 | }}} |
| 114 | |
| 115 | === Running Sahana Eden === |
| 116 | Switch to your virtualenv by running |
| 117 | {{{ |
| 118 | workon sahana-eden |
| 119 | }}} |
| 120 | and start web2py and Sahana Eden as usual, by running |
| 121 | {{{ |
| 122 | ./web2py |
| 123 | }}} |