一个有意卸载的包。

uninstallable的Python项目详细描述


uninstallable:可卸载的python控制盘!

安装不适用于尝试在其上安装的平台。很好的一天!

$ pip install --user ...
...
Collecting uninstallable>0; platform_system == "..." (from ...)
  Downloading ...
Collecting pywin32>=1.0; platform_system == "Linux" (from uninstallable>0; platform_system == "..."->...)
  Could not find a version that satisfies the requirement pywin32>=1.0; platform_system == "Linux" (from uninstallable>0; platform_system == "Linux"->...) (from versions: )
No matching distribution found for pywin32>=1.0; platform_system == "Linux" (from uninstallable>0; platform_system == "Linux"->...)
$ pip install --user ...
...
Collecting uninstallable>0; platform_system != "..." (from ...)
  Could not find a version that satisfies the requirement uninstallable>0; platform_system != "..." (from ...) (from versions: )
No matching distribution found for uninstallable>0; platform_system != "..." (from ...)

为什么?????????

这个包的目的是绕过python控制盘的限制 规范。它的存在是为了防止纯Python的成功安装。 平台上的轮子与包裹不相容。

怎么做?

pypi不允许上载平台类型无法识别的python控制盘,因此 要强制冲突:

  • 我们只为manylinux1_x86_64平台构建
  • 当 平台是Linux

这会导致找不到适用的uninstallable 包文件,或实现包具有不能为 安装.

建筑

python setup.py bdist_wheel -p manylinux1_x86_64

用法

fromsetuptoolsimportsetupsetup(name='...',version='1.0.0',description='...',long_description=open('README.md').read(),long_description_content_type='text/markdown',author='...',author_email='...',url='...',license='...',python_requires='...',install_requires=[...'uninstallable > 0;platform_system!="Linux"',],...

功能

  • 没有!

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java GlazedList单个列筛选   java Android按顺序从Gallery接收图像   无法解析java“”如何解决此错误?   使用所有源代码生成maven项目的jar的java   java从Android应用程序将数据插入MySQL数据库。数据库中未反映的更改   java如何使此方法可重用?   java@JsonInclude(Include.NON_NULL)不会从内部POJO中删除NULL字段   xml如何解压java。尼奥。使用JAXB的路径?   java Maven未使用服务器的servletapi构建   java我觉得在实体中添加带有@Transient注释的字段非常容易出错。我说得对吗?   java需要什么样的线程启动方法?为什么没有唯一的运行方法?   Apache CXF Maven发行版和CXF发行版之间的java差异   java如何处理播放数据库连接异常   java在Gridview上绘制文本   使用LWJGL时出现java安全错误   java字符数组列表   java无法从RTSP服务器获得任何答案   java如何将对象从servlet传递到JSP?   java如何通过编程设置imageView的高度?