一个有意卸载的包。
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"',],...
功能
- 没有!