如何在Github上确定Python包的鸡蛋名称? [英] How to determine the name of an egg for a Python package on Github?

查看:99
本文介绍了如何在Github上确定Python包的鸡蛋名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以通过

I know I can install with

$ pip install -e git+https://git.repo/some_pkg#egg=SomePackage

但是-当我尝试使用别人的包裹时-如何确定鸡蛋的名字是什么?

but -- when I'm trying to use somebody else's package -- how do I determine what the name of the egg is?

推荐答案

查看git repo,在根目录中找到setup.py文件,并在setup()函数调用中找到传递给name关键字的内容

Look at the git repo, find the setup.py file in the root and find what is passed to the name keyword in the setup() function call.

例如,金字塔setup.py 具有:

For example, the Pyramid setup.py has:

setup(name='pyramid',

因此您将使用:

$ pip install -e git+https://github.com/Pylons/pyramid.git#egg=pyramid

这篇关于如何在Github上确定Python包的鸡蛋名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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