Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Patching Python packages, installed as dependencies with Pip

Tags:

python

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?

like image 469
Andrii Yurchuk Avatar asked Oct 18 '25 07:10

Andrii Yurchuk


1 Answers

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

like image 66
arie Avatar answered Oct 21 '25 12:10

arie