pybind / pybind/pybind11

[BUG]: pybind11-config sometimes give wrong result

Open
#5,631 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
C++
Stars
18k
Forks
2.3k
Avg merge
5d 17h
Merged PRs (30d)
10

Description

What version (or hash if on master) of pybind11 are you using?

latest

Problem description

when I install matplotlib in editable mode, with pybind11 installed in --user home directory but not globally, error about header not found is raised.

context: https://github.com/matplotlib/matplotlib/issues/29741#issuecomment-2830629159

Update: as mentioned in the linked issue, this is probably an issue with pip https://github.com/pypa/pip/issues/13222

to reproduce:

# make sure pybind11 is not installed globally
pip install --user pybind11
git clone --depth 1 https://github.com/matplotlib/matplotlib
cd matplotlib
pip install -r requirements/dev/build-requirements.txt
pip install --verbose --no-build-isolation --editable ".[dev]"
Is this a regression? Put the last known working version here if it is.

Not a regression

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.

Research direction

Start by reproducing the editable matplotlib installation with the commands in the issue, checking the result of pybind11-config when pybind11 is installed with --user. Read the linked matplotlib context and pip issue #13222 to determine whether the failure belongs to pybind11 or pip; done means identifying a confirmed pybind11-side change or documenting that no change is needed here.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.