boostorg / boostorg/build

Boost.Python can not find python on windows if path contains spaces

Open
#729 1 comment 4 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
251
Forks
63
PR merge metrics
No merged PRs in 30d

Description

This issue was mentioned [here](https://github.com/microsoft/vcpkg/issues/5732), when building boost.python with numpy.
Everything is ok if python is installed in path without spaces, and it does not find system python (and thereafter numpy) if spaces are present in the path. So attached [file](https://github.com/boostorg/build/files/6778610/FixSpacesInPathIssue.patch.txt) can be applied as patch (mb it is not the best fix, but still works, please have a look).

I faced this issue on boost version 1.75.0

Contributor guide

Open the contributing guide

Research direction

Review the linked FixSpacesInPathIssue.patch.txt and the related vcpkg issue for context, then locate the Boost.Python discovery path in the build configuration. Reproduce the failure with Python installed under a path containing spaces and verify that system Python and NumPy are found afterward, including on Boost 1.75.0.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.