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

Open
#729 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

Description

bug

This issue was mentioned here, 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 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

Dominant language
C++
Stars
251
Forks
63
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/build

All issues in boostorg/build

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.