Installing Pycco on Windows

Pycco evaluates .py or .js files for comments in Markdown syntax to generate documentation. The setup process was a little confusing for me on a Windows machine, so I thought I would be friendly and document the process for others.

Install Python

  1. Install python
  2. Create a PYTHON_PATH System environment variable with a value of the python install directory
  3. Add %PYTHON_PATH% to the PATH System environment variable
  4. Add %PYTHON_PATH%\Scripts to the PATH System environment variable

Install Pygments

  1. Download Pygments 1.4
  2. Extract the compressed file to %PYTHON_PATH%/Scripts/pygments-1.4/
  3. Start a command prompt at %PYTHON_PATH%/Scripts/pygments-1.4/
  4. From the command prompt, run python setup.py install

Install Pycco

  1. Download pycco
  2. Extract the compressed file to %PYTHON_PATH%/Scripts/pycco/
  3. Start a command prompt at %PYTHON_PATH%/Scripts/pycco/
  4. From the command prompt, run python setup.py install

Run Pycco

  1. Run pycco <filename>.js