具体的GIT应用程序作为PIP包安装要求 [英] Specific GIT app as PIP package install requirement

查看:109
本文介绍了具体的GIT应用程序作为PIP包安装要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个应用程式 https://github.com/staticdev/django-crud-utils 需要安装django-sorting才能正常工作。但是它不能是原始的django排序,而是我所做的一个fork: https://github.com / staticdev / django-sorting

I have this app https://github.com/staticdev/django-crud-utils that need to have django-sorting installed to work. But it can't be the original django-sorting, but a fork I made: https://github.com/staticdev/django-sorting

如何将它放在setup.py文件中进行打包?

How do I put it in the setup.py file for packaging?

Tks。

推荐答案

将其包含为可编辑的要求,并注意您必须明确提及蛋名称: / p>

Include it as an editable requirement, and note that you must explicitly mention the egg name:

-e git+https://github.com/staticdev/django-sorting#egg=django-sorting

有关更多选项,请参阅 http://www.pip-installer.org/en/latest/requirements.html

For more options see http://www.pip-installer.org/en/latest/requirements.html

这篇关于具体的GIT应用程序作为PIP包安装要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆