Changes between Version 5 and Version 6 of InstallationGuidelines/VirtualEnv


Ignore:
Timestamp:
06/13/12 20:09:53 (9 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/VirtualEnv

    v5 v6  
    11[[TOC]]
    22= virtualenv =
    3 Using virtualenv allows multiple Python applications to each have an independent set of Libraries to allow easier management of dependencies.
     3Using [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 ===
     6You need to install {{{libxml2, python-devel, and libgeos_c}}}.
     7
     8On Ubuntu, you can do this by running:
     9{{{
     10sudo apt-get install libxml2 libxml2-dev libxslt1-dev python-dev libgeos-c1 libfreetype6-dev
     11}}}
     12
    413
    514== Install Python virtualenv ==
     
    1928easy_install virtualenv
    2029}}}
    21 
    22 == Optional: Use virtualenvwrapper ==
    23  * See VirtualEnv
    2430
    2531== Using virtualenv ==
     
    8086
    8187You can find further details on this at -> [http://projects.unbit.it/uwsgi/wiki/VirtualEnv]
     88
     89== Optional: Use virtualenvwrapper ==
     90It'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 ===
     93Create the virtualenv by running
     94{{{
     95mkvirtualenv --no-site-packages sahana-eden
     96}}}
     97
     98This will automatically run
     99{{{
     100workon sahana-eden
     101}}}
     102which activates the virtualenv, by setting the necessary environment variables.
     103
     104=== Download Web2Py and Sahana Eden ===
     105This can be installed anywhere, no need for it to be in the !VirtualEnv folder
     106
     107See wiki:InstallationGuidelinesDeveloper#Web2Py for instructions.
     108
     109=== Install Python Dependencies with Pip ===
     110{{{
     111cd web2py/applications/eden
     112pip install -r requirements.txt
     113}}}
     114
     115=== Running Sahana Eden ===
     116Switch to your virtualenv by running
     117{{{
     118workon sahana-eden
     119}}}
     120and start web2py and Sahana Eden as usual, by running
     121{{{
     122./web2py
     123}}}