Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Default -Dbuildtype=release cannot be overridden by native file

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

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

mesonpy/init.py の874行目付近から始め、issueで説明されているbuildtypeのnative-fileの動作を再現してください。meson-pythonが-Dbuildtypeを指定する方法と、Mesonのnative-fileの優先順位ルールを比較し、そのうえで、native fileによって意図したデフォルト値を指定でき、明示的なユーザー設定の適用を妨げないことを確認してください。

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

説明

I find it quite convenience to package together build options using Meson's native files. Unfortunately if I try to set the build type in a native file like e.g.:

[built-in options]
buildtype = 'debug'

this will not override the -Dbuildtype given by meson-python here (even though it's given earlier in the command line):

https://github.com/mesonbuild/meson-python/blob/cfcfb3554800d42c859d04309da2c1973c9f97ce/mesonpy/__init__.py#L874

I'm not sure whether this is something that should be fixed in Meson or meson-python. One workaround could be to put these defaults in a native file specified earlier in the command line. This should cause them to be overwritten by the user native file correctly.

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

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

mesonbuild/meson-python のほかの issue

mesonbuild/meson-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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