0

I have the unfortunate situation that I need to patch a package inside my virtualenv because of version conflict requirements that prohibit upgrading a package with a bug inside it.

Is there any way of providing patch files to pip when installing requirements from a .txt file? I could not find anything searching for "pip venv provide patches" and so on. I guess the solution would be to wrap it inside a bash script, but I'd rather avoid it if possible.

Brad Solomon
  • 38,521
  • 31
  • 149
  • 235
Curunir
  • 1,186
  • 2
  • 13
  • 30

1 Answers1

1

Is there any way of providing patch files to pip when installing requirements from a .txt file?

No, there is not. pip install does not support this.

One alternative would be to point pip to a patched version of the package, e.g. at a git repo. The linked Google thread also suggests checking out Paver.

Brad Solomon
  • 38,521
  • 31
  • 149
  • 235