Skip to content
Vlad-Shcherbina edited this page Aug 6, 2013 · 3 revisions
  • python 2.7
  • pypy 2.1 (optional; works well with virtualenv, see below)
  • pip (for instance, 1.4)
  • pip install nose
  • msysgit (for windows)
  • eclipse (for example, 4.3, but earlier versions most likely would do as well)
  • pydev (for example, 2.8)

Eclipse setup

Eclipse projects correspond to directories in repo. But eclipse workspace itself is not in repo (that's why .metadata have to be in gitignore)

When starting eclipse specify this repo directory (icfpc2013-tbd) as workspace directory. All preferences are stored in metadata and are therefore local.

preferences->pydev->python interpreter->auto config

file->import->existing project into workspace (production, example_scratch)

run it (open file 'production/test_all.py' or 'example_scratch/work_in_progress.py' and Ctrl-F11)


When creating new project, leave all settings at default and specify 'production' as referenced project.

Virtualenv and pypy setup

Basically virtualenv creates isolated version of python environment (with separate set of libraries installed, etc.) It's especially handy with pypy.

Installation:

Usage:

  • source path-to-my-pypy-env/bin/activate (on windows just path-to-my-pypy-env\bin\activate)
  • (pip install nose if necessary)
  • cd production
  • python test_all.py
  • deactivate
Clone this wiki locally