Andrii Yurchuk
Andrii Yurchuk

Reputation: 3270

Patching Python packages, installed as dependencies with Pip

I have a Python project, which can be installed using Pip. Along with installing the project, Pip downloads and installs some Python packages as dependencies. There's py-amqplib among them. To achieve the desired functionality I need to apply a patch to py-amqplib after its installation. Is there any way to do it automatically in the process of installation of my project?

Upvotes: 4

Views: 7224

Answers (1)

arie
arie

Reputation: 18972

You could fork the project (there seems to be a py-amqplib-repo on github) and apply your patches.

If your patch gets integrated upstream, fine.

If not, you can still use pip to install your patched fork directly: http://www.pip-installer.org/en/latest/logic.html

Upvotes: 4

Related Questions