Getting started with the OpenHatch code (moved): Difference between revisions

Line 46:
Instructions for setting up a virtualenv wrapper:
 
<codepre>
sudo apt-get install virtualenvwrapper python-setuptools
</codepre>
 
Be sure to configure your shell so that pip knows where to find your virtual environments:
 
<codepre>
# in .bashrc or .bash_profile
source /etc/bash_completion.d/virtualenvwrapper
</codepre>
 
Once installed, create your virtual environment for OpenHatch and install the dependencies
 
<codepre>
cd oh-mainline
 
mkvirtualenv --no-site-packages openhatch
 
workon openhatch
python boostrap.py
deactivate
</pre>
 
That ''boostraps'' your environment so that it will always use the virtualenv. Now, just run:
 
<pre>
./bin/buildout
</codepre>
 
And you should be fine. All future commands from ./bin/* will safely use the virtualenv and ignore Python modules installed systme-wide. (FIXME: Make ''sure'' this is true!)
 
== Run the tests ==
Anonymous user