简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM