The following is in the patches subdirectory. It is copied in during the build process. * I replaced setupext.py by a version that adds some SAGE-specific paths so the build doesn't fail (since SAGE includes certain libs that matplotlib depends on).