Notes on building questionnaire sandboxes

Sandbox on ubuntu 9.10 derivaties

(Specifically Linux Mint 8 which has python2.6 by default)

(These are really notes on upgrading an existing 2.5 sandbox to work on the 2.6 machine, but the broad principles are the same).

  • Need to get a copy of from somewhere (you can install it in your default python2.6 I think, but I had one hanging around).
  • Get a python2.5 installation:
    • sudo apt-get install python2.5 python2.5-dev
  • build a virtual environment.
    • python2.5 your_path_to/ meta4
    • creates you a virtualenv in meta4, but it's only using python2.5, if you do an activate now, you need to use python2.5, not python for your python, so
    • cd meta4/bin
      • ln -s python2.5 python
  • source meta4/bin/activate
  • Now get the packages you need:
    • easy_install django
    • easy_install simplejson
      • you may need to upgrade your setuptools
    • easy_install lxml
      • you may need to get some development tools first
        • Get libxml2 tools: sudo apt-get install libxml2-dev
        • Get libxslt tools: sudo apt-get install libxslt-dev

If you don't have one already, drag a sandbox down ...

and you're away running.