-
Notifications
You must be signed in to change notification settings - Fork 0
Tools
- 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 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.
Basically virtualenv creates isolated version of python environment (with separate set of libraries installed, etc.) It's especially handy with pypy.
Installation:
- download and unpack pypy 2.1 (http://pypy.org/download.html)
- pip install virtualenv
- http://doc.pypy.org/en/latest/getting-started.html#installing-using-virtualenv
Usage:
-
source path-to-my-pypy-env/bin/activate
(on windows justpath-to-my-pypy-env\bin\activate
) - (
pip install nose
if necessary) cd production
python test_all.py
deactivate