| OLD | NEW |
| 1 .. _install: | 1 .. _install: |
| 2 | 2 |
| 3 ============ | 3 ============ |
| 4 Installation | 4 Installation |
| 5 ============ | 5 ============ |
| 6 | 6 |
| 7 :history: 20100725T225600, new for 3.4. | 7 :history: 20100725T225600, new for 3.4. |
| 8 :history: 20100820T151500, updated for 3.4b1. | 8 :history: 20100820T151500, updated for 3.4b1. |
| 9 :history: 20100906T134800, updated for 3.4b2. | 9 :history: 20100906T134800, updated for 3.4b2. |
| 10 :history: 20110604T213400, updated for 3.5b1. | 10 :history: 20110604T213400, updated for 3.5b1. |
| 11 :history: 20110629T082400, updated for 3.5. | 11 :history: 20110629T082400, updated for 3.5. |
| 12 :history: 20110923T081900, updated for 3.5.1. | 12 :history: 20110923T081900, updated for 3.5.1. |
| 13 :history: 20120429T162500, updated for 3.5.2b1. | 13 :history: 20120429T162500, updated for 3.5.2b1. |
| 14 :history: 20120503T234000, updated for 3.5.2. | 14 :history: 20120503T234000, updated for 3.5.2. |
| 15 :history: 20120929T093600, updated for 3.5.3. | 15 :history: 20120929T093600, updated for 3.5.3. |
| 16 :history: 20121117T095000, Now setuptools is a pre-req. | 16 :history: 20121117T095000, Now setuptools is a pre-req. |
| 17 :history: 20121128T203000, updated for 3.6b1. | 17 :history: 20121128T203000, updated for 3.6b1. |
| 18 :history: 20121223T180800, updated for 3.6b2. | 18 :history: 20121223T180800, updated for 3.6b2. |
| 19 :history: 20121229T112400, updated for 3.6b3. | 19 :history: 20121229T112400, updated for 3.6b3. |
| 20 :history: 20130105T174400, updated for 3.6. | 20 :history: 20130105T174400, updated for 3.6. |
| 21 :history: 20131005T210600, updated for 3.7. |
| 22 :history: 20131212T213500, updated for 3.7.1. |
| 21 | 23 |
| 22 | 24 |
| 23 .. highlight:: console | 25 .. highlight:: console |
| 24 .. _coverage_pypi: http://pypi.python.org/pypi/coverage | 26 .. _coverage_pypi: http://pypi.python.org/pypi/coverage |
| 25 .. _setuptools: http://pypi.python.org/pypi/setuptools | 27 .. _setuptools: http://pypi.python.org/pypi/setuptools |
| 26 .. _Distribute: http://packages.python.org/distribute/ | 28 .. _Distribute: http://packages.python.org/distribute/ |
| 27 | 29 |
| 28 | 30 |
| 29 Installing coverage.py is done in the usual ways. You must have `setuptools`_ | 31 Installing coverage.py is done in the usual ways. You must have `setuptools`_ |
| 30 or `Distribute`_ installed already, and then you: | 32 or `Distribute`_ installed already, and then you: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 41 or even:: | 43 or even:: |
| 42 | 44 |
| 43 $ easy_install coverage | 45 $ easy_install coverage |
| 44 | 46 |
| 45 .. __: coverage_pypi_ | 47 .. __: coverage_pypi_ |
| 46 | 48 |
| 47 | 49 |
| 48 Installing from source | 50 Installing from source |
| 49 ---------------------- | 51 ---------------------- |
| 50 | 52 |
| 51 Coverage.py includes a C extension for speed. If you are installing from source, | 53 Coverage.py includes a C extension for speed. If you are installing from |
| 52 you may need to install the python-dev support files, for example with:: | 54 source, you may need to install the python-dev support files, for example |
| 55 with:: |
| 53 | 56 |
| 54 $ sudo apt-get install python-dev | 57 $ sudo apt-get install python-dev |
| 55 | 58 |
| 56 | 59 |
| 57 Installing on Windows | 60 Installing on Windows |
| 58 --------------------- | 61 --------------------- |
| 59 | 62 |
| 60 For Windows, kits are provided on the `PyPI page`__ for different versions of | 63 For Windows, kits are provided on the `PyPI page`__ for different versions of |
| 61 Python and different CPU architectures. These kits require that `setuptools`_ be | 64 Python and different CPU architectures. These kits require that `setuptools`_ |
| 62 installed as a pre-requisite, but otherwise are self-contained. They have the | 65 be installed as a pre-requisite, but otherwise are self-contained. They have |
| 63 C extension pre-compiled so there's no need to worry about compilers. | 66 the C extension pre-compiled so there's no need to worry about compilers. |
| 64 | 67 |
| 65 .. __: coverage_pypi_ | 68 .. __: coverage_pypi_ |
| 66 | 69 |
| 67 | 70 |
| 68 Checking the installation | 71 Checking the installation |
| 69 ------------------------- | 72 ------------------------- |
| 70 | 73 |
| 71 If all went well, you should be able to open a command prompt, and see | 74 If all went well, you should be able to open a command prompt, and see coverage |
| 72 coverage installed properly:: | 75 installed properly:: |
| 73 | 76 |
| 74 $ coverage --version | 77 $ coverage --version |
| 75 Coverage.py, version 3.6. http://nedbatchelder.com/code/coverage | 78 Coverage.py, version 3.7.1. http://nedbatchelder.com/code/coverage |
| 76 | 79 |
| 77 You can also invoke coverage as a module:: | 80 You can also invoke coverage as a module:: |
| 78 | 81 |
| 79 $ python -m coverage --version | 82 $ python -m coverage --version |
| 80 Coverage.py, version 3.6. http://nedbatchelder.com/code/coverage | 83 Coverage.py, version 3.7.1. http://nedbatchelder.com/code/coverage |
| OLD | NEW |