Installation instructions¶
System requirements¶
- Python 2.6, 2.7, or 3.2 and newer. Python 2.6 requires patching the sources, see below.
- setuptools.
- pytest 2.8.0 or newer.
(Python 3.1 is not supported by pytest 2.8.0 itself.)
Interaction with other packages¶
- pytest-xdist
- pytest-xdist features test run parallelization, e.g. distributing tests over separate processes that run in parallel. This is based on the assumption that the tests can be run independent of each other. Obviously, if you are using pytest-dependency, this assumption is not valid. Thus, pytest-dependency will only work if you do not enable parallelization in pytest-xdist.
Installation¶
Download the sources, unpack, and change into the source directory.
Build (optional):
$ python setup.py build
Test (optional):
$ python -m pytest
Install:
$ python setup.py install
The last step might require admin privileges in order to write into the site-packages directory of your Python installation.
If you are using Python 2.6, apply python2_6.patch after the first step:
1a. Patch:
$ patch -p1 < python2_6.patch
It removes the use of certain language features (dict comprehensions) that were introduced in Python 2.7.
For production use, it is always recommended to use the latest release version from PyPI, see above. If you build from the development sources that can be found at GitHub, please note that python2_6.patch is generated dynamically and not in the source repository.