Provide a fine grained mechanism for specifying `PYBIND11_ABSEIL_STATUS_MODULE_PATH`
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- cpp
- 领域
- build-system
调研方向
从 README.md 和 @pybind11_abseil//pybind11_abseil:status_casters 目标开始,然后追踪 pybind11::google::ImportStatusModule() 如何使用 PYBIND11_ABSEIL_STATUS_MODULE_PATH。定义所需的按目标定制边界,并验证使用者可以通过该目标设置模块路径,而无需应用全局 Bazel --cxxopt。
由索引模型根据 Issue 内容生成。
描述
I am using pybind11_abseil with pybind11_bazel.
I recently updated pybind11_abseil to HEAD and was surprised when my tests failed trying to import pybind11_absil.status. It took some time to track down the offending line to pybind11::google::ImportStatusModule(); on the C++ side and then to track down how the path is discovered.
With Bazel and assuming the default external repository name of pybind11_abseil, the corresponding Python import is from pybind11_abseil.pybind11_abseil import status. It took a while to find the relevant #define in README.md.
As the README accurately states, one must pass -D PYBIND11_ABSEIL_STATUS_MODULE_PATH=<path> directly on the command line (via bazel build --cxxopt="-D ...").
I was hoping for a more fine grained customization point via a macro that wraps @pybind11_abseil//pybind11_abseil:status_casters. At the moment, it is a pure pybind_library with no way to pass a defines or local_defines without setting --cxxopt globally.
- 主要语言
- C++
- 星标
- 27
- 派生
- 22
- 平均合并
- 19 小时
- 30 天内合并 PR
- 45
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pybind/pybind11_abseil 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 43/100
pybind/pybind11_abseil#83 ·
维护者通常 1 天内回复
-
CMake linking and install improvements可能重新可做 @Mizux 于 639 天前认领,目前没有进行中的 PR。 未关闭cmake enhancement
pybind/pybind11_abseil#21 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Python bindings for absl::Status cause ODR violation可能重新可做 @Mizux 于 401 天前认领,目前没有进行中的 PR。 未关闭bazel bug
pybind/pybind11_abseil#20 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
bazel bug
难度 4/5 3-5 天 新手友好度 35/100
pybind/pybind11_abseil#12 · 26 条评论 ·
维护者通常 1 天内回复
-
bug enhancement help wanted
难度 3/5 1-2 天 新手友好度 45/100
pybind/pybind11_abseil#4 · 4 条评论 ·
维护者通常 1 天内回复
查看 pybind/pybind11_abseil 的全部 Issue
相似的 Issue
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
type:bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
tenstorrent/tt-umd#4084 ·
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
ToffelsKater/X4_VR#34 ·
-
difficulty:easy prio:low refactor
难度 2/5 1-3 小时 新手友好度 72/100
NatronGitHub/openfx-supportext#220 ·
维护者通常 1 天内回复