mesonbuild / mesonbuild/meson-python

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

オープン
#787 コメント 31 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

enhancement
主要言語
Python
スター
180
フォーク
93
平均マージ
2日 7時間
マージ済み PR(30日)
18

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

meson-python の config-settings ドキュメントと、pyproject.toml にある project-settings の例から始めてください。現在 limited-api がどのように読み取られているかを追跡し、python -m build --config-setting=limited-api=true が受け入れられ、要求された ABI 互換 wheel の動作を生成することを確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
build-system
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。