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

Building boost.Python fails with non-standard Python installation on Windows

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

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

評価

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

調査の方向性

レポートで使用されている user-config.jam の設定と bootstrap.bat および b2 のエントリポイントから始めます。Z:\Python313 に展開した Python 3.13 を使って Windows のビルドを再現し、その後、なぜ b2 が Python 3.9 しか認識しないのかを特定します。設定した標準外の Python インストールが認識され、Boost.Python のビルドが正常に成功すれば完了です。

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

説明

I'm able to successfully build boost.Python on my local machine with Python 3.13 using b2 like so:

.\bootstrap.bat vc143
.\b2 python=3.13 # other arguments

The issues start happening when I try to build on our Azure DevOps build agents. Because of .*~reasons~*. I can't install Python 3.13 directly on those build agents. So, I zipped up a python 3.13 installation, and in the build pipeline I grab the Python zip file and extract it to some directory, say, Z:\Python313. Then I created a user-config.jam in the root of the boost directory like the following:

using python : 3.13 : Z:\Python313 ;

And in the build pipeline, I try to build boost.Python like so

bootstrap.bat vc143 --with-python=3.13
b2 python=3.13

While bootstrap.bat succeeds, b2 fails with the following error:

error: "3.13" is not a known value of feature <python>
error: legal values: "3.9"

So I understand that the way I'm trying to do this is a little bit unusual, but is there a way that I can get this to work? Or must Python be installed via the installer (because b2 uses py or the registry entries that the installer creates) to build boost.Python on Windows?

主要言語
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 を短くまとめたダイジェスト。