开发者

Patching Python packages, installed as dependencies with Pip

开发者 https://www.devze.com 2023-02-23 01:57 出处:网络
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 achiev

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 pr开发者_运维问答ocess 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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号