我正在制作一个setup.py文件,需要指向我的代码仓库。
使用GitHub,我可以这样做:
dependency_links=['https://github.com/nathanborror/django-registration/tarball/master#egg=django-registration']
我该如何在Bitbucket项目中完成相同的操作?
比如这个URL:
https://bitbucket.org/abraneo/django-registration
谢谢。
你的Github链接似乎指向了一个压缩过的tar文件。尝试为你在Bitbucket上托管的项目做同样的操作 -- https://bitbucket.org/abraneo/django-registration/get/tip.tar.gz
可以使用以下URL在dependency_links
中添加BitBucket Mercurial (hg)存储库:
'https://bitbucket.org/zzzeek/alembic/get/tip.zip#egg=alembic-0.6.0'
tip.zip
,但如果是git,则URL必须引用master.zip
。'https://bitbucket.org/zzzeek/alembic/get/master.zip#egg=alembic-0.6.0'
。现在我实际上需要的是pip install 'https://bitbucket.org/zzzeek/alembic/get/master.zip#egg=alembic-0.6.0'
。 - Giszmo
pip install https://bitbucket.org/abraneo/django-registration/get/tip.tar.gz
。 - paragbaxi