history: | 20100725T225600, new for 3.4. |
---|---|
history: | 20100820T151500, updated for 3.4b1. |
history: | 20100906T134800, updated for 3.4b2. |
Installing coverage.py is fairly standard:
or, use:
$ easy_install coverage
or even:
$ pip install coverage
Coverage.py includes a C extension for speed. If you are installing from source, you may need to install the python-dev support files, for example with:
$ sudo apt-get install python-dev
For Windows, kits are provided on the PyPI page for different versions of Python and different CPU architectures. These kits require that setuptools be installed as a pre-requisite, but otherwise are self-contained. They have the C extension pre-compiled so there’s no need to worry about compilers.
If all went well, you should be able to open a command prompt, and see coverage installed properly:
$ coverage --version
Coverage.py, version 3.4. http://nedbatchelder.com/code/coverage