Skip to content
eventh edited this page Sep 24, 2011 · 8 revisions

Here comes some step to learning and understanding Python and libraries we will use. We require python 3.2.2 or later (for now)!

1. Useful links

2. Adding python to PATH on windows

If you want to run python from the command prompt on windows you need to add the python install directory to the PATH environment variable: http://docs.python.org/py3k/using/windows.html#excursus-setting-environment-variables

3. Installing PLY

PLY is lex/yacc for python, a python library we depend on. Download and extract it: http://www.dabeaz.com/ply/ply-3.4.tar.gz Start a command prompt or terminal, navigate inside "ply-3.4" folder and run "python setup.py install"

4. Installing pycparser

pycparser is the C parser library, it depends on PLY. Until version 2.05 is released, install latest code straight from the repository at https://code.google.com/p/pycparser/

5. Installing YAML

Yaml is the configuration we have selected. pyYAML is the python library for it. Download and extract it: http://pyyaml.org/download/pyyaml/PyYAML-3.10.zip Start a command prompt or terminal, navigate inside "PyYAML-3.10" folder and run "python setup.py install"

6. Unit tests

  • We have decided to use Attest for python unit testing.
  • Until version 0.6 is released, install straight from the github repository
  • Run in a terminal inside CSjark/csjark/ "python -m attest"
  • For coverage, run "python -m coverage run -m attest"

7. User Documentation

8. Python IDE

I don't have the answer to this problem, there are several out there of varying quality. You should probably collaborate a bit on this problem, it seems the best ones cost money, like WingIDE and Kommodo. Python on windows comes bundled with one called IDLE i think, PyScripter is windows only and might be good. There are some that are based on Eclipse, and Netbeans etc. http://wiki.python.org/moin/IntegratedDevelopmentEnvironments

Clone this wiki locally