开发者

pip checkout svn, git etc. with no setup.py

开发者 https://www.devze.com 2023-03-20 05:47 出处:网络
I understand that on开发者_如何学Goe can use pip to install packages from svn etc. ala: -e svn+http://django-grappelli.googlecode.com/svn/trunk/grappelli#egg=grappelli

I understand that on开发者_如何学Goe can use pip to install packages from svn etc. ala:

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

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

How can I achieve something like:

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

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

pip install -r requirements/project.txt


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 has no setup.py in the project, so, unfortunately it is not possible to install it via pip/easy_install.

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.

0

精彩评论

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

关注公众号