Cross-platform patch utility to apply unified diffs.
Download patch.py and run it with Python. It is a self-contained module without external dependencies.
python patch.py diff.patch
You can also run the .zip file.
python patch-1.14.2.zip diff.patch
It is better to just stuff patch.py into your repository and use it from here. This way your setup will always be repeatable. If you still want to install it, make sure to use strict dependencies to avoid hitting an API break:
pip install "patch>=1,<2"
With pip 6.x.x and later it is possible to use the alternative syntax:
pip install "patch==1.*"