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

Wrong NumPy headers included when building boost.numpy with multiple configured Python versions

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

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

評価

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

調査の方向性

Boost 1.68.0 を VS2017 で使用し、示されている python_config.jam と bjam コマンドで問題を再現します。まず、設定されている各 Python バージョンについて -d+2 と --debug-configuration の出力を比較し、boost.numpy がどのようにヘッダーを選択しているかを調べます。各 Python 設定がそれぞれ独自の NumPy ヘッダーを使用し、NumPy が無効な場合に boost.numpy がビルドされなければ完了です。

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

説明

Having configured multiple Python-installations in python_config.jam, each like

using python
    : 3.7 # version
    : C:\\Python37-x64\\ # cmd-or-prefix
    : C:\\Python37-x64\\include # includes
    : C:\\Python37-x64\\libs # libraries
    : <address-model>64 # condition
    ;

The call to
bjam target-os=windows address-model=64 debug-symbols=on debug-store=database --user-config=python_config.jam --debug-configuration --debug-generator python=3.7 -d+2 --with-python stage

Shows in its output that bjam correctly detects for each of the configured Python installations if NumPy is available or not ("enabled"/"disabled").

However, the output due to -d+2, shows that bjam includes the wrong NumPy headers. It seems that it includes them from the respective directory of whichever Python-installation comes last in python_config.jam and that has NumPy "enabled".

Additionally, even if the debug-configuration-output says that NumPy is "disabled" for a certain Python-installation, bjam will still build boost.numpy - again, including the NumPy headers for whichever installation comes last in python_config.jam that has NumPy "enabled".

Building boost 1.68.0 with VS2017 / 15.8.8 on Windows 10 x64 for Windows x64.

主要言語
C++
スター
537
フォーク
223
平均マージ
11時間 22分
マージ済み PR(30日)
2

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

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

はじめの一歩

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

boostorg/python のほかの issue

boostorg/python の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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