flatc is missing from the PyPy aarch64 wheel and from every install built from the sdist
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- cmake, docker, python
调研方向
Read hatch_build.py and the [tool.hatch.build.targets.sdist] section of pyproject.toml, then inspect docker/Dockerfile.pypy-{bookworm,trixie}-manylinux-arm64 and the wheel build workflow. First confirm the reported missing-CMake warning in the PyPy ARM64 build log. Done when sdist-based installs and the PyPy ARM64 wheel include autobahn/_flatc/bin/flatc, and CI rejects a wheel missing it.
由索引模型根据 Issue 内容生成。
描述
Problem
autobahn bundles the FlatBuffers compiler as autobahn/_flatc/bin/flatc, and
autobahn._flatc.get_flatc_path() returns it. Two kinds of installs have no flatc:
-
The PyPy Linux aarch64 wheel. In 26.10.1, 31 of the 32 wheels contain
flatc
(3.4-4.4 MB).autobahn-26.10.1-pp311-pypy311_pp73-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
contains onlyautobahn/_flatc/__init__.py, which is why it is 669 KB, where the other wheels are 2.0-3.4 MB.
26.7.1 has the same gap (656 KB, noflatc). -
Every install built from the sdist, i.e. every platform or interpreter without a
matching wheel. The sdist excludes/deps/flatbuffers(pyproject.toml,
[tool.hatch.build.targets.sdist], since #1797), sohatch_build.py_build_flatc()
printsWARNING: .../deps/flatbuffers not foundand returns without building it.
Example: PyPy 8 (pp80), for which no wheel is published:$ uv venv -p pypy-3.11 v && uv pip install -p v/bin/python autobahn==26.10.1 $ v/bin/python -c 'from autobahn._flatc import get_flatc_path; get_flatc_path()' FileNotFoundError: flatc binary not found at .../site-packages/autobahn/_flatc/bin/flatc. This may indicate a corrupted installation. Try reinstalling: pip install --force-reinstall autobahn(the installed wheel is
pp311-pypy311_pp80-linux_x86_64, built locally from the sdist).
Both failures are silent at build time: _build_flatc() only prints a warning, and the
release fileset check counts wheels, not their contents.
Likely causes
- PyPy aarch64:
_build_flatc()skips the build whencmakeis not onPATH
(WARNING: cmake not found, skipping flatc build). The custom PyPy ARM64 images
(docker/Dockerfile.pypy-{bookworm,trixie}-manylinux-arm64) do not install cmake; the
build log of the wheels-arm64 PyPy job should show the warning. Not yet confirmed from the log. - sdist: zlmdb keeps the FlatBuffers C++ sources needed for
flatcin its sdist and only
excludestests/,samples/,docs/and the other language bindings from
/deps/flatbuffers; autobahn excludes the whole directory.
Proposal
- Install cmake in the PyPy ARM64 images (or in
build-arm64-wheel.sh). - Include the parts of
deps/flatbuffersthatflatcneeds in the sdist, as zlmdb does. - Make a missing
flatcfail the wheel build in CI (e.g. anAUTOBAHN_REQUIRE_FLATC
switch, or a check of every wheel's contents in the release workflow), so a wheel
withoutflatccannot be published again.
This issue was drafted with AI assistance (Claude Code).
- 主要语言
- Python
- 星标
- 2.5k
- 派生
- 767
- 平均合并
- 23 小时 55 分钟
- 30 天内合并 PR
- 25
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
crossbario/autobahn-python 的其他 Issue
-
CI-CD enhancement
难度 2/5 1-3 小时 新手友好度 78/100
crossbario/autobahn-python#1945 · 1 条评论 ·
维护者通常 1 天内回复
-
bug CI-CD
难度 2/5 1-3 小时 新手友好度 76/100
crossbario/autobahn-python#1932 ·
维护者通常 1 天内回复
-
CI-CD enhancement
难度 2/5 1-3 小时 新手友好度 72/100
crossbario/autobahn-python#1829 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
crossbario/autobahn-python#1963 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 68/100
crossbario/autobahn-python#1962 ·
维护者通常 1 天内回复
查看 crossbario/autobahn-python 的全部 Issue
相似的 Issue
-
infrastructure
难度 2/5 1-3 小时 新手友好度 74/100
khuisman/mcp-gee-sweet#1152 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
backroom bug
难度 2/5 1-3 小时 新手友好度 68/100
ditto-assistant/ditto-subnet#3069 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 67/100
open-webui/open-webui#32901 · 1 条评论 ·
维护者通常 1 天内回复
-
0.3.3 bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复