chore: 导入旧记忆备份供恢复

This commit is contained in:
2026-09-23 22:38:40 +08:00
parent 5313fcee7a
commit 6a6a895eaf
638 changed files with 29816 additions and 1 deletions
@@ -0,0 +1,21 @@
---
title: 坑:离线 wheel 下载的平台标签与 sdist 特例
type: experience
permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/坑离线-wheel-下载的平台标签与-sdist-特例
stable_id: 2bff13bb-b5cc-40fd-8b2f-774f5c6b9dba
scope: project
memory_type: experience
project_id: d5a7f581-c442-4554-87b9-ee723b8b0258
usage_profile_id: 7aee455b-24cc-4008-bdaf-443721e6f939
status: active
revision: 1
request_id: metrix-mig-e4
created_at: '2026-08-12T17:38:41.510547+00:00'
updated_at: '2026-08-12T17:38:41.510547+00:00'
tags:
- pitfall
- pypi
- wheel
---
pypi_mirror.py download 用 --only-binary + --platform manylinux_2_17_x86_64:1) 个别包(如 watchdog)wheel 只标 manylinux2014_x86_64 无 2_17 复合别名,整批解析失败且 pip 是 all-or-nothing——遇批量失败先拆批定位,再单独 pip download --platform manylinux2014_x86_64。2) 只发 sdist 的包(如 peewee):pip download --no-binary 会在本机触发 PEP517 构建(Windows 无编译器失败),改从 PyPI JSON API(https://pypi.org/pypi/<name>/json 的 urls 里 packagetype=sdist)直接拓 tar.gz;upload 已支持 .tar.gz,pypiserver 原生支持 sdist,容器内安装时纯 Python 包可现场构建。3) pysftp 类 sdist-only 且有替代(paramiko)的直接不收录。