Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Allow the user to specify `limited-api` from the command line

未关闭
#787 32 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
38/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
build-system

调研方向

先查看 meson-python 的 config-settings 文档以及 pyproject.toml 中的 project-settings 示例。跟踪当前如何读取 limited-api,然后验证 python -m build --config-setting=limited-api=true 是否被接受,并产生所要求的 ABI 兼容 wheel 行为。

由索引模型根据 Issue 内容生成。

描述

enhancement

I think this is a more specific version of https://github.com/mesonbuild/meson-python/issues/639.

Currently, so far as I know, the only way to tell meson-python to tag a wheel as ABI compatible is with a project setting via the pyproject.toml

[tool.meson-python]
limited-api = true

However, for my project I would like to be able to build abi3 wheels for Python 3.12+, and not for lower versions. So it would be nice to be able to instead specify it via a build config setting. Something like

python -m build --config-setting=limited-api=true

I'd be happy to take a crack at a PR if this seems reasonable?

主要语言
Python
星标
180
派生
93
平均合并
20 小时 58 分钟
30 天内合并 PR
22

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mesonbuild/meson-python 的其他 Issue

查看 mesonbuild/meson-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。