点如何识别为包装创建轮子

编程入门 行业动态 更新时间:2024-10-26 23:35:48
本文介绍了点如何识别为包装创建轮子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

pip如何决定在软件包上再次运行setup.py bdist_wheel旧版setup.py install?

How pip decide to run setup.py bdist_wheel againest legacy setup.py install on a package?

推荐答案

我认为它是在某处描述的!但我不知道到底在哪里.也许在一个PEP中.

I think it is described somewhere! but I dont know exacly where. maybe in one PEP.

是否要创建轮子的主要检查是在 github/pypa/pip/blob/develop/pip/wheel.py#L773

The main check of whether to create a wheel or not is in github/pypa/pip/blob/develop/pip/wheel.py#L773

pip.index.egg_info_matches使用r'([a-z0-9_.]+)-([a-z0-9_.!+-]+)'检查软件包的基本名称.这意味着包含文件夹名称的setup.py首先必须采用mypackage-anything的形式!否则,上述检查将失败,并且旧版安装将开始.

the pip.index.egg_info_matches checks basename of your package with r'([a-z0-9_.]+)-([a-z0-9_.!+-]+)'. That means setup.py containing folder name must be in form of mypackage-anything in first place! otherwise the above check will fail and the legacy installation will starts.

更多推荐

点如何识别为包装创建轮子

本文发布于:2023-07-05 06:51:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1034336.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:轮子   如何识别

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!