pip结帐svn,git等,没有setup.py [英] pip checkout svn, git etc. with no setup.py

查看:98
本文介绍了pip结帐svn,git等,没有setup.py的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解人们可以使用pip从svn等安装软件包ala:

I understand that one can use pip to install packages from svn etc. ala:

-e svn+http://django-grappelli.googlecode.com/svn/trunk/grappelli#egg=grappelli

但是,在这种情况下,grappelli没有setup.py,因此安装失败.

However, in this case, grappelli has no setup.py, so the installation fails.

我如何实现以下目标:

svn co http://django-grappelli.googlecode.com/svn/trunk/grappelli ../pinax-env/lib/python2.6/site-packages/grappelli/

但是,将命令放入pip要求文件(例如project.txt)中并运行

Yet, putting the command in a pip requirements file, such as project.txt and running

pip install -r requirements/project.txt

推荐答案

如果没有存储的python软件包,则无法安装python软件包. Pip依靠setup.py来获取软件包的信息.

There is no way to install a python package if there is no stored information about it. Pip relies on setup.py to get package's information.

grappelli在项目中没有setup.py,因此,很遗憾,不可能通过pip/easy_install安装.

grappelli has no setup.py in the project, so, unfortunately it is not possible to install it via pip/easy_install.

PS:如果这对您真的很重要,请分叉该项目并添加一个setup.py(或向他们发送一个差异补丁).我相信它将不仅对您有帮助.也许您可以以 django_compressor 为例.

PS: It if it really important to you, fork the project and add a setup.py (or send them a diff patch). I am sure it will help not only you. Maybe you can take django_compressor as an example.

这篇关于pip结帐svn,git等,没有setup.py的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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